Commit Graph

14921 Commits (97de0c6d9a8ff97d88af386add2c948b80cf8055)

Author SHA1 Message Date
Jan Bouwhuis 97de0c6d9a
Late review on added type hint MQTT fixture () 2023-02-03 22:22:52 +01:00
Raman Gupta 86cef27e1c
Rename zwave_js ws API command () 2023-02-03 15:26:20 -05:00
Erik Montnemery 6f097eecc3
Add WS commands thread/list_datasets, thread/get_dataset_tlv () 2023-02-03 15:22:31 -05:00
Klaas Schoute 3723241937
Add easyEnergy integration () 2023-02-03 19:56:17 +01:00
Jan Bouwhuis 3edfd10f2d
Add type hints for MQTT common helper and fixtures () 2023-02-03 19:27:46 +01:00
Erik Montnemery 4f94c7cab6
Add thread WS API () 2023-02-03 11:47:09 -05:00
Franck Nijhof 1b4f4edce2
Don't override icon in sensor group when device class is set () 2023-02-03 16:38:05 +01:00
Erik Montnemery 4d4fb2477d
Optionally update sensor units when unit system is changed () 2023-02-03 16:30:50 +01:00
epenet 923abdb02a
Add configurator to strict typing () 2023-02-03 16:02:55 +01:00
Erik Montnemery 527de22adf
Add thread dataset store ()
* Add thread dataset store

* Address review comments

* Bump python-otbr-api to 1.0.3

* Remove stuff which we don't need yet
2023-02-03 09:47:41 -05:00
Franck Nijhof 1409b89af3
Sync input_select & select () 2023-02-03 15:43:17 +01:00
epenet 783e6fdd36
Ignore TAI8570 errors in onewire () 2023-02-03 09:11:54 -05:00
epenet 2433fc2bab
Fix volume state class in renault () 2023-02-03 09:01:25 -05:00
epenet 810367b757
Fix `can not` typo () 2023-02-03 11:37:16 +01:00
Marc Mueller 2c0c386ba7
Reduce required permissions for fritzbox_callmonitor ()
* Test new FritzAuthorizationError

* Reduce required permissions
2023-02-02 21:13:53 -05:00
mkmer e9c10de9a9
Bump AIOSomecomfort to 0.0.6 ()
* Bump to 0.0.5

* Bump aiosomecomfort to 0.0.6

* lower case aiosomecomfort

* Fix other bad imports....

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-02 16:45:49 -05:00
Karlie Meads e40a9822f5
Fix disabled condition within an automation action ()
fixes undefined
2023-02-02 22:35:02 +01:00
epenet a79be493e5
Adjust hass_client type hint in integration tests ()
* Adjust hass_client type hint in integration tests

* Adjust hass_client_no_auth

* Fix rebase
2023-02-02 16:29:57 -05:00
GrahamJB1 8bff95014c
Add modbus min/max values ()
* modbus min/max values
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-02-02 22:29:03 +01:00
Franck Nijhof f9d7d65f3a
Use template selector for prompt template in OpenAI ()
* Use template selector for prompt template in OpenAI

* Fix tests

* Do not parse template result
2023-02-02 15:20:10 -05:00
J. Nick Koston 389fc515a1
Prevent overly large attributes from being stored in the database () 2023-02-02 11:49:33 -06:00
Franck Nijhof 5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
epenet 7643f98d20
Fix invalid state class in renault () 2023-02-02 10:38:21 +01:00
epenet 58596d205c
Ensure sensor and recorder converters align () 2023-02-02 10:36:03 +01:00
epenet cc469ab9a9
Add unit conversion to Power sensors ()
* Add missing PowerConverter to UNIT_CONVERTERS

* Adjust tests
2023-02-02 10:27:12 +01:00
J. Nick Koston 1fd58b6cb7
Fix a few cartesian products in recorder tests ()
Fixes
```
recorder/test_init.py:251: SAWarning: SELECT statement has a cartesian product between FROM element(s) "states" and FROM element "state_attributes".  Apply join condition(s) between each element to resolve.
```
2023-02-02 07:47:09 +01:00
Jan Bouwhuis 2e16b7e2df
Add numeric_state_expected property to Sensor class ()
* Add is_numeric property to Sensor class

* Follw up comment

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Tests and corrections

* Simplify converion check

* Correct custom device class handling

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* rename to numeric_state_expected

* Replace with new const

* Adjust docstr

* Update homeassistant/components/sensor/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Move to const

* Correct logic

* Do not use bool

* Adjust docstr must be numeric

* remote state from docstr

* protect numeric_state_expected

* Use try_parse_enum for custom class check

* Remove redundant type hints

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-02-01 18:45:13 +01:00
J. Nick Koston fb55933b0a
Reduce chance of queue overflow during schema migration ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-02-01 18:34:40 +01:00
Paulus Schoutsen f32f46aff5
Fix Assist skipping entities that are hidden or have entity category ()
Skipping entities that are hidden or have entity category
2023-02-01 10:48:04 -06:00
Michael 2f51059b7f
Proper handling of authentication errors in AVM Fritz!Tools () 2023-02-01 16:03:18 +01:00
epenet 1225c5e97d
Add enum util ()
* Add enum helper

* docstring

* Move to util

* Add use case
2023-02-01 15:00:27 +01:00
Paulus Schoutsen ad87c4557d
Guard what version we can install ESPHome updates with ()
* Guard what version we can install ESPHome updates with

* Update homeassistant/components/esphome/dashboard.py
2023-01-31 23:15:23 -05:00
Paulus Schoutsen 8417f22904
Trigger update of ESPHome update entity when static info updates ()
Trigger update of update entity when static info updates
2023-01-31 22:13:41 -05:00
J. Nick Koston faf79d0b50
Ensure humidity is still exported to HomeKit when it is read-only ()
* Ensure humidity is still exported to HomeKit when is cannot be set

We would only send humidity to HomeKit if the device supported
changing the humidity

* remove unrelated changes
2023-01-31 21:03:43 -05:00
J. Nick Koston 5284837c8f
Add a repair issue when using MariaDB is affected by MDEV-25020 ()
closes https://github.com/home-assistant/core/issues/83787
2023-01-31 20:42:07 +01:00
Paulus Schoutsen 9c0856787d
Improve JSON errors from HTTP view () 2023-01-31 20:37:26 +01:00
Michael Hansen 52cf6c7baf
Fix assert order in intent tests ()
Fix assert order
2023-01-31 10:59:00 -06:00
On Freund 35b82db8b0
Rympro integration code fixes ()
* Address review comments

* Add coordinator.py to coveragerc

* Apply suggestions from code review

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update homeassistant/components/rympro/coordinator.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Move SCAN_INTERVAL to coordinator.py

---------

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-01-31 10:40:43 +01:00
epenet 7db166b515
Fix tests typing helper () 2023-01-31 08:48:35 +01:00
Jan Bouwhuis 33ede351f0
Cleanup code for parsing yaml MQTT config ()
* Cleanup code for parsing yaml configs

* Add abstractmethod decorator to async_update

* Replace get() with default-list ensured by schema
2023-01-31 08:24:33 +01:00
Michael Hansen be69c81db5
Prioritize entity names over area names in Assist matching ()
* Refactor async_match_states

* Check entity name after state, before aliases

* Give entity name matches priority over area names

* Don't force result to have area

* Add area alias in tests

* Move name/area list creation back

* Clean up PR

* More clean up
2023-01-30 23:46:25 -05:00
Marcel van der Veldt f8c6e4c20a
Add support for Hue Smart Scenes (Natural Lights) ()
* Bump aiohue to 4.6.0

* fix device name for lights

* fix name for groups too

* ignore smart scenes

* bump to 4.6.1 instead

* Add support for Smart Scenes (Natural lights) in Hue

* update base entity class

* fix test fixture

* update tests

* fix scene test

* fix typo

* use underlying scene controller

* use enum value

* update tests

* add current scene name within smart scene

* extra attributes are only valid if the scene is active

* Update v2_resources.json

* typo

* fix after merge
2023-01-30 23:32:37 -05:00
Paulus Schoutsen d88849fb04
ESPHome handle remove password and no encryption ()
* ESPHome handle remove password and no encryption

* Start reauth for invalid api password

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-01-30 23:05:48 -05:00
Paulus Schoutsen 98b4a412f7
ESPHome discovered dashboard checks reauth flows () 2023-01-30 21:32:52 -05:00
Paulus Schoutsen 2cdeb6f1cd
Check dashboard when showing reauth form () 2023-01-30 22:46:42 +01:00
ollo69 772df02cce
Catch AndroidTV exception on setup ()
fixes undefined
2023-01-30 22:42:32 +01:00
puddly 8337d4613e
ZHA config flow cleanup ()
fixes undefined
2023-01-30 22:21:34 +01:00
Raman Gupta c715534821
Bump zwave-js-server-python to 0.45.0 () 2023-01-30 14:27:37 -05:00
Paulus Schoutsen e0f8b5bbd1
Fix some mobile app sensor registration/update issues ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-30 20:08:19 +01:00
Jan Bouwhuis e57dad79fc
Fix MQTT discovery failing after bad config update ()
* Fix MQTT discovery failing after bad config update

* Update last discovery payload after update success

* Improve test, correct update assignment

* send_discovery_done to finally-catch vol.Error

* Just use try..finally

* Remove extra line

* use elif to avoid log confusion
2023-01-30 19:15:11 +01:00