Ariel Ebersberger
982fe7a370
Use value comparison for value-based enums ( #174494 )
2026-06-22 22:44:26 +02:00
Ariel Ebersberger
5432d29489
Use is/is not for same-enum identity comparisons (tests) ( #171689 )
2026-05-22 11:32:27 +02:00
epenet
88525955ce
Remove import annotations from tests ( #169527 )
2026-04-30 09:30:46 +02:00
epenet
d0eb90274d
Cleanup deprecated YAML import from vera ( #165659 )
2026-03-23 13:00:20 +01:00
Erik Montnemery
9f3beba97a
Fix vera test opening sockets ( #165439 )
2026-03-13 11:00:17 +01:00
Jon
d10f5cc9ea
Expose power and energy sensors for vera metered switches ( #161028 )
2026-02-12 23:56:35 +01:00
Abílio Costa
b626204f63
Add default device class display precision for Sensor ( #145013 )
...
* Add default device class display precision for Sensor
* Renaming, docstrings, cleanup
* Simplify units list
* Fix tests
* Fix missing precision when suggested is specified
* Update snapshots
* Fix when unit of measurement is not valid
* Fix tests
* Fix deprecated unit usage
* Fix goalzero tests
The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.
Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.
* Fix metoffice
* Fix smartthings
* Add default sensor data for Tesla Wall Connector tests
* Update snapshots
* Revert spaces
* Update smartthings snapshots
* Add missing sensor mock for tesla wall connector
* Address review comments
* Add doc comment
* Add cap to doc comment
* Update comment
* Update snapshots
* Update comment
2025-05-26 19:40:29 +02:00
Petar Petrov
c68cadad7a
Improve precision of HSV color conversion ( #130880 )
2024-11-19 22:06:57 +01:00
G Johansson
93aade6e8e
Change lock state to an enum ( #126379 )
...
* Add new LockState enum for lock states
* Add rest
* Fix insteon tests
* Fix mqtt tests
* Fix tesla_fleet
* Revert back ST_STATE_LOCKED
* Add back constant
2024-09-24 12:30:50 +02:00
epenet
da4f401d17
Move vera base entity to separate module ( #126186 )
2024-09-18 09:50:07 +02:00
epenet
3e967700fd
Add missing return type in test __init__ method (part 2) ( #123939 )
...
* Add missing return type in test __init__ method (part 2)
* Adjust
* One more
* One more
* More
2024-08-14 17:59:15 +02:00
epenet
f07f183a3e
Use registry fixtures in tests (v-y) ( #118299 )
2024-05-28 14:26:14 +02:00
Marc Mueller
1ad8151bd1
Use PEP 695 type alias in tests ( #117797 )
2024-05-20 19:03:04 +02:00
Sid
3efee10b95
Enable Ruff RUF013 ( #115333 )
2024-04-10 08:55:59 +02:00
Joost Lekkerkerker
f3ba713289
Use FlowResultType enum in config flow tests N-Z ( #114682 )
...
Use FlowResultType enum in config flow tests
2024-04-03 09:53:20 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ( #114677 )
...
* Use right enum expression U-Z
* Fix
2024-04-02 23:09:56 +02:00
Sid
69564b1a17
Add ruff rule PIE800 ( #113619 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-16 16:31:30 -10:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
J. Nick Koston
4d90d3cd91
Fix vera tests with python3.11 ( #88124 )
2023-02-14 13:58:44 -06:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
epenet
10905f6074
Use climate enums in vera ( #70750 )
2022-04-25 21:25:24 -10:00
Erik Montnemery
fe65804de1
Correct unit of vera power meter sensor ( #69285 )
2022-04-04 09:25:02 -07:00
Marc Mueller
d057850971
Update typing - collections.abc (3) ( #63947 )
2022-01-12 08:04:17 +01:00
Ville Skyttä
7d03b02192
Spelling fixes ( #51642 )
2021-06-11 13:35:03 +02:00
Ville Skyttä
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
Marc Mueller
4cb7718192
Update typing 16 ( #48087 )
2021-03-18 22:58:19 +01:00
Marc Mueller
54d1e9985f
Update typing 15 ( #48079 )
2021-03-18 15:13:22 +01:00
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() ( #47655 )
2021-03-09 14:25:03 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Greg Dowling
8f4ea3818d
Add unavailable to Vera ( #46064 )
2021-02-08 15:25:54 +01:00
Greg Dowling
e01ca40d56
Force Vera refresh after starting subscription ( #46001 )
...
* Force vera refresh after starting subscription.
* Request refresh on device load.
* Update init test.
2021-02-05 13:20:15 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
springstan
6c8e0e20fb
Add and use light lux constant in entire code base ( #40171 )
2020-09-23 20:48:01 +02:00
Ville Skyttä
5e90a4d000
Use more state attribute name constants ( #40428 )
2020-09-21 23:03:39 +02:00
Robert Van Gorkom
903afb62d0
Add support for multiple vera controller hubs ( #33613 )
2020-09-14 22:06:52 -05:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Robert Van Gorkom
bdd255176c
Poll all status data in Vera ( #35703 )
...
* Vera now polls for all status data, no only incremental.
Vera polling is not handled using hass event loops with proper backoffs.
* Using long polling.
* Addressing PR feedback.
* Addressing PR feedback.
Adding controller stop on config unload.
2020-06-13 16:36:50 +02:00
Paulus Schoutsen
4170eb0f83
Use builtin mock ( #36473 )
2020-06-05 10:59:55 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Robert Van Gorkom
ab08c1bef8
Fix vera config ids not being converted to integers ( #35070 )
2020-05-02 14:10:49 -07:00