Commit Graph
57 Commits
Author SHA1 Message Date
Artur PragaczandGitHub bafef2065f Rework user-given entity name logic (#162763) 2026-03-17 11:09:20 +01:00
Artur PragaczandGitHub 0130919128 Improve entity id generation (#160302) 2026-01-14 14:34:52 +01:00
epenetandGitHub ed9fd2c643 Use async_load_fixture in async test functions (b-i) (#145714)
* Use async_load_fixture in async test functions (b-i)

* Adjust
2025-06-01 06:31:37 -07:00
Erik MontnemeryandGitHub 4e1d5fbeb0 Add WS command to help reset custom entity_id (#145504)
* Add WS command to help reset custom entity_id

* Calculate suggested object id from entity properties

* Fix logic and add additional tests

* Adjust test

* Update folder_watcher test

* Handle current entity id matches the automatic entity id

* Don't store calculated_object_id

* Update snapshots

* Update snapshots

* Update test

* Tweak logic for reusing current entity_id

* Improve test

* Don't assign same entity_id to several entities

* Prioritize custom entity name

* Update snapshots

* Update snapshots
2025-05-26 19:28:27 +02:00
Simone ChemelliandGitHub 484a547758 Fix pylance warning on SnapshotAssertion import (#145206) 2025-05-19 13:55:48 +02:00
4b34d1bbb5 Merge config subentry feature branch to dev (#136121)
* Reapply "Add support for subentries to config entries" (#133470) (#136061)

* Reapply "Add support for subentries to config entries" (#133470)

This reverts commit ecb3bf79f3.

* Update test snapshot

* Add config subentry support to device registry (#128157)

* Add config subentry support to device registry

* Apply suggestions from code review

* Update syrupy serializer

* Update snapshots

* Address review comments

* Allow a device to be connected to no or a single subentry of a config entry

* Update snapshots

* Revert "Allow a device to be connected to no or a single subentry of a config entry"

This reverts commit ec6f613151cb4a806b7961033c004b71b76510c2.

* Update test snapshots

* Bump release version in comments

* Rename config_subentries to config_entries_subentries

* Add config subentry support to entity registry (#128155)

* Add config subentry support to entity registry

* Update syrupy serializer

* Update snapshots

* Update snapshots

* Accept suggested changes

* Clean registries when removing subentry (#136671)

* Clean up registries when removing subentry

* Update tests

* Clean up subentries from deleted devices when removing config entry (#136669)

* Clean up subentries from deleted devices when removing config entry

* Move

* Add config subentry support to entity platform (#128161)

* Add config subentry support to entity platform

* Rename subentry_id to config_subentry_id

* Store subentry type in subentry (#136687)

* Add reconfigure support to config subentries (#133353)

* Add reconfigure support to config subentries

* Update test

* Minor adjustment

* Rename supported_subentry_flows to supported_subentry_types

* Address review comments

* Add subentry support to kitchen sink (#136755)

* Add subentry support to kitchen sink

* Add subentry reconfigure support to kitchen_sink

* Update kitchen_sink tests with subentry type stored in config entry

* Update kitchen_sink

* Update kitchen_sink

* Adjust kitchen sink tests

* Fix hassfest

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <[email protected]>

* Improve docstrings and strings.json

---------

Co-authored-by: Martin Hjelmare <[email protected]>

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2025-02-10 16:40:07 +01:00
epenetandGitHub fe010289b4 Use new ServiceInfo location in component tests (part 2) (#136062) 2025-01-20 13:13:45 +01:00
caf85fe61d Fix printer uptime fluctuations in IPP (#127725)
* decrease uptime accuracy from seconds to minutes

* adjust tests

* calc uptime timestamp in coordinator

* bump pyipp to 0.17.0

* revert changes, just use the new printer.booted_at property

---------

Co-authored-by: Chris Talkington <[email protected]>
2024-10-12 13:22:03 -05:00
MichaelandGitHub 347440019e Use snapshot platform test helper in IPP (#127734)
* use snapshot_platform

* we don't need to check for amount of entities anymore
2024-10-09 19:28:22 -05:00
Marc MuellerandGitHub 921430d497 Import Generator from collections.abc (3) (#120916) 2024-07-01 12:09:11 +02:00
epenetandGitHub 4f6a98cee3 Remove unused request fixtures (#119044) 2024-06-07 09:19:03 +02:00
Marc MuellerandGitHub 274cd41d57 Fix Generator annotations in tests (1) (#119018) 2024-06-07 08:43:32 +02:00
Marc MuellerandGitHub 33ed4fd862 Import Generator from typing_extensions (3) (#118990) 2024-06-06 17:28:59 +02:00
MichaelandGitHub 2891a63281 Store runtime data inside the config entry in IPP (#116765)
* store runtime data inside the config entry

* improve tests
2024-05-08 01:16:06 -05:00
Joost LekkerkerkerandGitHub 906d3198e3 Use is in enum comparison in config flow tests F-J (#114670)
* Use right enum expression F-J

* Fix
2024-04-02 23:01:37 +02:00
Chris TalkingtonandGitHub fe99d80054 Add diagnostics for IPP (#113205) 2024-03-14 00:44:07 -05:00
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc MuellerandGitHub c88b337600 Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
Joost LekkerkerkerandGitHub b70eea7fb2 Add icon translations to IPP (#111846)
* Add icon translations to IPP

* Add icon translations to IPP
2024-02-29 16:09:47 +01:00
J. Nick KostonandGitHub 5c7d3035ca Migrate ipp to use async_update_entry to alter config entries (#110311) 2024-02-12 20:19:48 +01:00
Jan-Philipp BeneckeandGitHub 92b3c0c96b Update i-j* tests to use entity & device registry fixtures (#103900) 2023-11-13 11:51:55 +01:00
J. Nick KostonandGitHub 0eca433004 Update zeroconf discovery to use IPAddress objects to avoid conversions (#100567) 2023-09-19 18:58:46 +02:00
J. Nick KostonandGitHub a20d1a357f Avoid probing ipp printers for unique_id when it is available via mdns (#99982)
* Avoid probing ipp printers for unique_id when it is available via mdns

We would always probe the device in the ipp flow and than
abort if it was already configured. We avoid the probe for
most printers.

* dry

* coverage

* fix test

* add test for updating host
2023-09-11 22:34:23 -04:00
Chris TalkingtonandGitHub b854551c77 Use entity descriptions for IPP (#93888) 2023-08-23 09:34:21 -05:00
Chris TalkingtonandGitHub 7390e3a997 Refactor IPP tests (#94097)
refactor ipp tests
2023-07-09 17:37:32 -05:00
epenetandGitHub ea29cdfe83 Add type hints to integration tests (part 12) (#87997) 2023-02-13 13:03:51 +01:00
Paul BotteinandGitHub dd0f11a062 Add translation key for IPP printer integration (#84441)
* Add translation key for IPP printer integration

* Add tests
2023-01-03 17:56:46 -06:00
Michaël ArnautsandGitHub 627a208d9f Use a global const for CONF_UUID (#84093) 2022-12-19 12:16:30 +01:00
epenetandGitHub 00dd27ef1b Apply hass-relative-import to tests (i-r) (#78732) 2022-09-19 09:46:59 +02:00
Franck NijhofandGitHub a6244eea28 Search/replace RESULT_TYPE_* by FlowResultType enum (#74656) 2022-07-07 21:28:18 +02:00
Joshua RoysandGitHub 9134e5c844 Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Ville SkyttäandGitHub 5bf67cac66 Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
cbab0ba9c0 Drop base ATTR constants in zeroconf (#60561)
Co-authored-by: epenet <[email protected]>
2021-12-01 12:29:41 +01:00
44611d7e26 Use dataclass for ZeroconfServiceInfo (#60206)
Co-authored-by: epenet <[email protected]>
2021-11-23 22:59:36 +01:00
386520b883 Use ZeroconfServiceInfo in ipp (#59983)
Co-authored-by: epenet <[email protected]>
2021-11-19 10:16:34 -06:00
Paulus SchoutsenandGitHub 31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
Ville SkyttäandGitHub 19d25cd901 Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
a396619251 Use disabled_by constants (#49584)
Co-authored-by: J. Nick Koston <[email protected]>
2021-04-23 09:56:42 +02:00
Franck NijhofandGitHub 7264c95217 Clean up superfluous integration setup - part 6 (#49298) 2021-04-16 09:23:27 -07:00
Erik MontnemeryandGitHub 84226da404 Update tests i-o to use async_get() instead of async_get_registry() (#47653) 2021-03-09 14:32:08 +01:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
schericandGitHub 3d9d90c4c8 Use common string names in ipp config flow (#41409)
* connection_error->cannot_connect

* connection_error->cannot_connect in config flow
2020-10-07 22:42:01 +02:00
springstanandGitHub d2b1918e9c Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Chris TalkingtonandGitHub 1e685a4a00 Optimize ipp tests (#38485)
* optimize ipp tests

* Update test_config_flow.py
2020-08-02 13:02:47 -10:00
J. Nick KostonandGitHub 07f3d6ebd8 Fix unmocked setup in ipp tests (#37430) 2020-07-03 11:43:13 -07:00
Franck NijhofandGitHub 3cc94f7d6a ConfigFlow default discovery without unique ID (#36754) 2020-06-15 13:38:38 +02:00
Chris TalkingtonandGitHub be854b7363 Improve ipp unique id parsing (#35959) 2020-05-23 20:02:49 +02:00
Chris TalkingtonandGitHub aaf515ef67 Prevent discovery of IPP printers lacking identifier (#35630) 2020-05-16 10:48:36 +02:00
Paulus SchoutsenandGitHub ec47216388 Use built-in test helpers on 3.8 (#34901) 2020-04-30 13:29:50 -07:00