Commit Graph

16040 Commits

Author SHA1 Message Date
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
Erik Montnemery
4f94c7cab6 Add thread WS API (#87307) 2023-02-03 11:47:09 -05:00
Franck Nijhof
1b4f4edce2 Don't override icon in sensor group when device class is set (#87304) 2023-02-03 16:38:05 +01:00
Erik Montnemery
4d4fb2477d Optionally update sensor units when unit system is changed (#83851) 2023-02-03 16:30:50 +01:00
epenet
923abdb02a Add configurator to strict typing (#87279) 2023-02-03 16:02:55 +01:00
Erik Montnemery
527de22adf Add thread dataset store (#87187)
* 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 (#87255) 2023-02-03 15:43:17 +01:00
epenet
783e6fdd36 Ignore TAI8570 errors in onewire (#87154) 2023-02-03 09:11:54 -05:00
epenet
2433fc2bab Fix volume state class in renault (#87280) 2023-02-03 09:01:25 -05:00
epenet
810367b757 Fix can not typo (#87254) 2023-02-03 11:37:16 +01:00
Marc Mueller
2c0c386ba7 Reduce required permissions for fritzbox_callmonitor (#87089)
* Test new FritzAuthorizationError

* Reduce required permissions
2023-02-02 21:13:53 -05:00
mkmer
e9c10de9a9 Bump AIOSomecomfort to 0.0.6 (#87203)
* 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 (#87213)
fixes undefined
2023-02-02 22:35:02 +01:00
epenet
a79be493e5 Adjust hass_client type hint in integration tests (#86954)
* 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 (#86131)
* 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 (#87205)
* 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 (#87105) 2023-02-02 11:49:33 -06:00
Franck Nijhof
5e81d28116 Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
epenet
7643f98d20 Fix invalid state class in renault (#87135) 2023-02-02 10:38:21 +01:00
epenet
58596d205c Ensure sensor and recorder converters align (#87138) 2023-02-02 10:36:03 +01:00
epenet
cc469ab9a9 Add unit conversion to Power sensors (#87136)
* 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 (#87106)
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 (#87013)
* 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 (#87090)
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 (#87096)
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 (#79434) 2023-02-01 16:03:18 +01:00
epenet
1225c5e97d Add enum util (#87082)
* Add enum helper

* docstring

* Move to util

* Add use case
2023-02-01 15:00:27 +01:00