Thomas Hollstegge
589ff54e63
Do not return cached values for entity states in emulated_hue ( #87642 )
...
* Do not return cached values for state and brightness
* Move building the uncached state dict behind a lru_cache (_build_entity_state_dict)
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 13:39:08 -05:00
Franck Nijhof
c25bff9389
Tweak Elgato tests ( #87629 )
2023-02-07 19:14:13 +01:00
epenet
a202588fd2
Add return type to json_loads ( #85672 )
...
* Add JSON type definitions
* Sample use
* Keep mutable for a follo-up PR (avoid dead code)
* Use list/dict
* Remove JsonObjectType
* Remove reference to Union
* Cleanup
* Improve rest
* Rename json_dict => json_data
* Add docstring
* Add type hint to json_loads
* Add cast
* Move type alias to json helpers
* Cleanup
* Create and use json_loads_object
* Make error more explicit and add tests
* Use JsonObjectType in conversation
* Remove quotes
2023-02-07 17:21:55 +01:00
Franck Nijhof
20b60d57f2
Add lru cache to loading fixtures in tests ( #87634 )
2023-02-07 16:50:13 +01:00
Erik Montnemery
720f51657d
Add CI job which runs recorder tests on PostgreSQL ( #80614 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 09:46:14 -06:00
epenet
3a83b2f66f
Rename fixture function in stt tests ( #87630 )
2023-02-07 16:06:53 +01:00
epenet
59ca7780fa
Add typing to tests with single hass argument ( #87631 )
2023-02-07 15:01:16 +01:00
Marc-Olivier Arsenault
fe9f6823c3
Add ecobee ventilator ( #83645 )
...
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 07:54:23 -06:00
epenet
4d73de6295
Remove unused function in slack tests ( #87618 )
2023-02-07 07:52:15 -06:00
J. Nick Koston
0a1d5c85ad
Optimize history.get_last_state_changes query ( #87554 )
...
fixes undefined
2023-02-07 07:50:44 -06:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
epenet
8f8bdac451
Fix namespace issue in pylint plugin ( #87627 )
2023-02-07 13:07:21 +01:00
epenet
ef6798e854
Add caplog to known fixtures in pylint plugin ( #87617 )
2023-02-07 11:34:02 +01:00
Jan Bouwhuis
c78cae4483
Fix handling `None` or empty value for numeric MQTT sensor ( #87004 )
...
* Allow `None` for numeric sensor, ignore empty val
* Add test case with omitting a value
* Use _numeric_state_expected property
* Only respect None if numeric state is expected
2023-02-07 11:23:23 +01:00
epenet
aa00114c2f
Add return type to async tests without arguments ( #87612 )
2023-02-07 10:26:56 +01:00
Maciej Bieniek
6a3619d9fa
Refactor NAM sensor platform ( #87048 )
...
* Bump backend library
* Remove AQI_LEVEL_STATE_MAPPING
* Add native_precission
* Update diagnostics fixture
* Use _attr_native_value
* Fix type
* Improve lambda
* Revert native_value property
* native_precision -> suggested_display_precision
2023-02-07 09:14:20 +01:00
Jan Bouwhuis
73e3b30906
Add `suggested_display_precision` config option for MQTT sensor ( #87129 )
...
* Add precision for MQTT sensor
* Correct tests
* Use _attr_suggested_display_precision
* Rename option and add abbreviation
* Make abbr more compact
2023-02-07 08:55:35 +01:00
Paulus Schoutsen
400c88a1cc
OpenAI: Ignore devices without a name ( #87558 )
...
Ignore devices without a name
2023-02-06 23:57:08 -05:00
Marc Mueller
342b406dc0
Add Self typing (1) [mypy 1.0] ( #87598 )
2023-02-06 22:29:47 -06:00
Martin Hjelmare
f378dcdc30
Fix matter remove config entry device ( #87571 )
2023-02-06 22:41:52 +01:00
Paulus Schoutsen
a090652560
Use correct state in Entity repr and output similar value to State class ( #87519 )
...
* Use correct state in Entity repr
* Test Entity.__repr__
* Align with State class
2023-02-06 13:35:36 -05:00
epenet
3d7ae84326
Remove use of HomeAssistantType ( #87525 )
2023-02-06 17:17:43 +01:00
MarkGodwin
ce9a514667
TP-Link Omada integration ( #81223 )
...
* TP-Link Omada integration
Support for PoE config of network switch ports
* Bump omada client version
* Fixing tests
* Refactored site config flow
* Code review comments
* Fixed tests and device display name issue
* Bump isort to fix pre-commit hooks
* Hassfest for the win
* Omada code review
* Black
* More config flow test coverage
* Full coverage for omada config_flow
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-06 10:57:18 -05:00
Franck Nijhof
939eef3b28
Remove translations from Core ( #87543 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Jan Bouwhuis
4ad386d794
Correct type hints mqtt_client_mock and move new generator type ( #87527 )
...
* Correct mqtt_client_mock and move MqttMockType
* Rename MqttMockType to MqttMockGenerator
* Make types more specific
* adjust returntype _setup_mqtt_entry
* Correct return type _setup_mqtt_entry
* Update tests/conftest.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/conftest.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-06 15:05:06 +01:00
ollo69
ade0d6fcae
Use suggested_display_precision for AsusWrt sensors ( #87396 )
...
* Use native_precision for AsusWrt sensors
* Use suggested_display_precision
2023-02-06 11:05:10 +01:00
J. Nick Koston
c7980bda82
Fix recorder run history during schema migration and startup ( #87492 )
...
Fix recorder run history during schema migration
RunHistory.get and RunHistory.current can be called before
RunHistory.start. We need to return a RecorderRuns object
with the recording_start time that will be used when start
it called to ensure history queries still work as expected.
fixes #87112
2023-02-05 22:12:41 -05:00
Martin Hjelmare
24bb3a705c
Adjust matter test exception argument ( #87282 )
2023-02-06 01:02:06 +01:00
J. Nick Koston
c11f3ffa17
Speed up purge time with newer MariaDB versions ( #87409 )
...
* Speed up purge time with newer MariaDB versions
* fix
* document
* document
* document
* rename
* self review
* Update homeassistant/components/recorder/util.py
* fixes
2023-02-05 17:58:34 -05:00
Franck Nijhof
d389de71f5
Coordinator refactor in Elgato ( #87490 )
2023-02-05 21:54:30 +01:00
Martin Hjelmare
0aa489e3f0
Refactor tradfri switch tests ( #86816 )
...
Co-authored-by: Patrik Lindgren <21142447+ggravlingen@users.noreply.github.com>
2023-02-05 21:02:17 +01:00
Robert Hillis
d5b2062774
Disable uptime sensor by default in Unifi ( #87484 )
...
Disable Uptime sensor by default in Unifi
2023-02-05 19:28:28 +01:00
Franck Nijhof
1cd7f221d5
Update elgato to 4.0.1 ( #87479 )
2023-02-05 19:22:15 +01:00
Nathan Spencer
11ccd166fe
Use pybalboa 1.0.0 ( #87214 )
...
* Use pybalboa 1.0.0
* Code changes per PR review
2023-02-05 19:10:35 +01:00
krahabb
899342d391
Refactor async_call_later to improve performance and reduce conversion loss ( #87117 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-05 12:04:38 -06:00
Gregory Haynes
936ffafd27
Add missing name field to emulated_hue config ( #87456 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-05 11:34:37 -06:00
epenet
2f3b509513
Refactor onewire options flow ( #87162 )
...
* Refactor onewire options flow
* Adjust
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use async_entries_for_config_entry
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-05 01:18:20 +01:00
J. Nick Koston
4d0e236c6a
Ignore invalid zeroconf names from devices with broken firmwares ( #87414 )
2023-02-04 16:29:03 -06:00
J. Nick Koston
3be6d4dcfb
Disable mopeka accelerometer sensors by default ( #87420 )
...
* Disable mopeka accelerometer sensors by default
These generate a significant amount of noise and are
only useful when placing the sensor. Disable them by
default. This not a breaking change because existing
preferences are preserved.
* adjust tests
2023-02-04 22:34:34 +02:00
epenet
19e27f4f52
Ensure recorder api aligns with sensor converters ( #87257 )
2023-02-04 14:28:47 -06:00
Erik Montnemery
bcc1aa03b4
Move sensor rounding to frontend ( #87330 )
...
* Move sensor rounding to frontend
* Update integrations
* Add comment
2023-02-04 14:54:36 -05:00
Erik Montnemery
0d713809e7
Store preferred dataset separately in thread dataset store ( #87378 )
2023-02-04 06:33:17 -05:00
Franck Nijhof
bf482eee24
Extend state class sensor warnings with expected values ( #87294 )
2023-02-04 11:49:24 +01:00
Paulus Schoutsen
fc38b4327f
Add support for multiple conversation agents ( #87337 )
...
* Add support for multiple conversation agents
* Lock initializing default agent
* Allow unsetting agent when never set
2023-02-03 23:35:29 -05:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Jan Bouwhuis
97de0c6d9a
Late review on added type hint MQTT fixture ( #87342 )
2023-02-03 22:22:52 +01:00
Raman Gupta
86cef27e1c
Rename zwave_js ws API command ( #87336 )
2023-02-03 15:26:20 -05:00
Erik Montnemery
6f097eecc3
Add WS commands thread/list_datasets, thread/get_dataset_tlv ( #87333 )
2023-02-03 15:22:31 -05:00
Klaas Schoute
3723241937
Add easyEnergy integration ( #86266 )
2023-02-03 19:56:17 +01:00
Jan Bouwhuis
3edfd10f2d
Add type hints for MQTT common helper and fixtures ( #87065 )
2023-02-03 19:27:46 +01:00