Commit Graph

45512 Commits (8ccb3b715199d690c9a11200a8aa7b3207296f4f)

Author SHA1 Message Date
Klaas Schoute 3723241937
Add easyEnergy integration (#86266) 2023-02-03 19:56:17 +01:00
starkillerOG 4c1147e62b
Reolink add number platform (#87217)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-02-03 19:29:27 +01:00
Glenn Waters 71200baa8f
Bump UPB integration library to 0.5.3 (#86740) 2023-02-03 19:27:27 +01:00
Koen van Zuijlen c6338b7ba1
Fixed parser for zeversolar hardware version M10 (#87319)
fixes undefined
2023-02-03 18:46:11 +01:00
epenet cd99cdbc7d
Fix missing property in bosch_shc (#87260) 2023-02-03 18:41:47 +01:00
Michael efb8cb8c90
Bump py-synologydsm-api to 2.1.2 (#87324)
fixes undefined
2023-02-03 18:39:30 +01:00
Erik Montnemery 4f94c7cab6
Add thread WS API (#87307) 2023-02-03 11:47:09 -05:00
epenet b03f4fa1d3
Improve type hints in cloud (#87263) 2023-02-03 17:10:25 +01:00
epenet ad039b5ffc
Fix geniushub type hint (#87258) 2023-02-03 17:10:01 +01:00
epenet 9400dac905
Improve type hints in melcloud (#87264) 2023-02-03 17:09:34 +01:00
epenet e40df09098
Improve type hints in edl21 (#87267) 2023-02-03 17:09:16 +01:00
G Johansson b092698418
Fix UoM and device_class in Trafikverket Weather (#87308) 2023-02-03 17:07:50 +01:00
epenet cf39403282
Improve type hints in google assistant (#87273) 2023-02-03 17:05:49 +01: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
epenet 61734f04b8
Re-enable Ruff D418 (#87302) 2023-02-03 16:33:03 +01:00
Erik Montnemery 4d4fb2477d
Optionally update sensor units when unit system is changed (#83851) 2023-02-03 16:30:50 +01:00
Franck Nijhof 4b27af6a8f
Re-enabled Ruff E713 (#87301) 2023-02-03 16:18:33 +01:00
epenet 5958e7c515
Improve type hints in evohome (#87266) 2023-02-03 16:18:10 +01:00
Paul Bottein e77e49a87a
Add icons for prusalink sensors and buttons (#87256)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-03 16:03:15 +01:00
epenet 923abdb02a
Add configurator to strict typing (#87279) 2023-02-03 16:02:55 +01:00
epenet 9306e0371e
Improve type hints in duckdns (#87270) 2023-02-03 16:00:34 +01:00
Franck Nijhof 695a453159
Fix incorrect description in sensor group config flow (#87298) 2023-02-03 15:59:34 +01:00
epenet 23a9b92a1c
Improve type hints in homematicip_cloud (#87269) 2023-02-03 15:52:14 +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
BasBruss 5422ef239b
Fix monetary state class in tibber (#87274)
state_class=SensorStateClass.TOTAL for monetary data
2023-02-03 09:02:23 -05:00
epenet e00622f137
Bump sfrbox-api to 0.0.6 (#87281) 2023-02-03 09:01:51 -05:00
epenet 2433fc2bab
Fix volume state class in renault (#87280) 2023-02-03 09:01:25 -05:00
starkillerOG 37efd8938a
Bump reolink-aio to 0.3.4 (#87272) 2023-02-03 09:00:22 -05:00
epenet 8c6eee7d38
Add type hints to configurator request_config (#87287) 2023-02-03 08:48:58 -05:00
epenet 810367b757
Fix `can not` typo (#87254) 2023-02-03 11:37:16 +01:00
Franck Nijhof b8a1f87073
Fix schema typing on async_register_entity_service (#87250) 2023-02-03 11:25:02 +01:00
Erik Montnemery 91668f8599
Use SensorStateClass enum in sensor (#87066)
* Use SensorStateClass enum in sensor

* Apply suggestions from code review

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

* Update homeassistant/components/sensor/recorder.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-03 10:49:41 +01:00
Tobias Stanzel 2349aa73b2
Add Bosch SHC sensor state class (#86823)
Added missing state class
2023-02-03 10:27:21 +01:00
G Johansson 19b4cf4c8b
Filesize timestamp remove state class (#87247)
fixes undefined
2023-02-03 09:15:54 +01:00
jjlawren a8b7a32578
Handle failed Sonos subscriptions better (#87240)
Catch unsubscribe failure separately from ZGS poll
2023-02-02 23:42:36 -05: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
Brett Adams 904b25d0d2
Fix call values in Aussie Broadband (#87229)
Fixed calls values

Added lamda for International, Voicemail, and Other calls.
2023-02-02 21:10:47 -05:00
Crisicus 934bb3e0c1
Fix an extra quote typo in the percentage util (#87161) 2023-02-02 19:59:08 -06:00
starkillerOG 25cfa8afdd
Reolink simplify (#87224)
Simplify
2023-02-02 20:35:43 -05:00
GitHub Action ce79b26ab6 [ci skip] Translation update 2023-02-03 00:25:31 +00: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 11cb6b131f
Improve type hints in saj (#87183) 2023-02-02 16:33:23 -05:00
epenet cdc01fce4c
Improve type hints in transmission (#87171) 2023-02-02 16:32:51 -05:00
epenet 111a77893e
Improve type hints in whirlpool (#87169)
Imrpove type hints in whirlpool
2023-02-02 16:32:40 -05:00
epenet 8a58d1d321
Improve type hints in Xiaomi Miio (#87167)
Imrpove type hints in Xiaomi Miio
2023-02-02 16:32:12 -05:00
epenet 62482f3500
Improve typing in script integration (#87076) 2023-02-02 16:31:46 -05:00
epenet ea3395d576
Improve typing in plaato (#87074) 2023-02-02 16:31:24 -05:00
epenet 275438adf3
Improve typing in ping binary sensor (#87073) 2023-02-02 16:31:09 -05:00
epenet 22c295fbdc
Improve typing in ihc util (#87069) 2023-02-02 16:30:32 -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
epenet 98198d3c1f
Improve type hints in template (#87172) 2023-02-02 16:26:03 -05:00
epenet 9327947332
Improve type hints in onvif (#87184) 2023-02-02 16:25:43 -05:00
Bram Kragten 843e3ca9e6
Update frontend to 20230202.0 (#87208) 2023-02-02 16:11:01 -05:00
Michael 5d8bd0e2e5
Bump py-synologydsm-api to 2.1.1 (#87211)
bump py-synologydsm-api to 2.1.1
2023-02-02 16:10:51 -05:00
starkillerOG f439a94a0d
Reolink unsubscribe webhook when first refresh fails (#87147)
* catch ValueError on webhook async_register

* add ONVIF to webhook_id

* Unsubscribe webhook when ConfigEntryNotReady for async_config_entry_first_refresh

* Revert catching ValueError
2023-02-02 15:21:41 -05: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 22698b1cc5
Fix statistics graphs not loading with data_rate, electric_current, voltage, information, and unitless units (#87202)
* Add missing converts to recorder/statistics_during_period API

This was resulting in the stats graphs not loading on the frontend

* its in two places
2023-02-02 14:52:55 -05:00
Franck Nijhof 3e087ac88c
Adjust IoT Class of Reolink to local push (#87206) 2023-02-02 14:33:17 -05:00
shbatm 439232223a
Support ISY994 Z-Wave motorized blinds as cover (#87102) 2023-02-02 14:27:30 -05:00
Jan Bouwhuis d8bba6747e
Address late review on readability sensor code (#87111)
* Improve readability _numeric_state_expected

* Update homeassistant/components/sensor/__init__.py
2023-02-02 20:22:33 +01:00
epenet 5df16d761c
Cleanup coordinator in motion blinds (#87185) 2023-02-02 19:23:51 +01: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
Paul Bottein f7666239ff
Add author metadata for blueprints (#87070) 2023-02-02 11:00:26 -05:00
Marc Mueller 07a3046d11
Update pylint to 2.16.0 (#87083) 2023-02-02 12:49:01 +01:00
epenet bd6a4d10ea
Use try_parse_enum in integrations (#87085) 2023-02-02 12:34:01 +01:00
Dmitry Vlasov 4a38b622b2
Update zwave-me-ws version to 0.3.1 (#87145) 2023-02-02 12:02:29 +01:00
starkillerOG d017214d8b
Bump reolink-aio to 0.3.2 (#87121) 2023-02-02 11:24:06 +01:00
epenet 7643f98d20
Fix invalid state class in renault (#87135) 2023-02-02 10:38:21 +01:00
Dmitry Vlasov 41b9994218
Add missing supported features to Z-Wave.Me siren (#87141) 2023-02-02 10:36:38 +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
epenet 6806e85eab
Add missing converters to recorder statistics (#87137) 2023-02-02 09:44:26 +01:00
starkillerOG 29d6ae8d0c
Bump reolink_aio to 0.3.1 (#87118) 2023-02-02 04:56:18 +01:00
GitHub Action 0f80932709 [ci skip] Translation update 2023-02-02 00:25:01 +00: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
Bram Kragten 0a524833e3
Update frontend to 20230201.0 (#87099) 2023-02-01 18:06:12 +01:00
Daniel Hjelseth Høyer 54900ca25f
Update pyTibber to 0.26.12 (#87098) 2023-02-01 18:04:24 +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
Poltorak Serguei 97fac1dde8
Improve Z-Wave.Me integration description (#87088)
Z-Wave.Me integration Description improved
2023-02-01 16:50:53 +01:00
Michael 2f51059b7f
Proper handling of authentication errors in AVM Fritz!Tools (#79434) 2023-02-01 16:03:18 +01:00
epenet afa55156d6
Improve typing in nest legacy platforms (#87071) 2023-02-01 06:57:53 -08:00
mkmer 2412f7d266
Bump AIOAladdinConnect to 0.1.55 (#87086) 2023-02-01 15:57:21 +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
epenet 8efd01b2e8
Type fixes for alexa entities (#87077)
* Type fixes for alexa entities

* Adjust get_type
2023-02-01 14:07:32 +01:00
epenet 10bfebed19
Improve typing in plex services (#87078) 2023-02-01 13:24:07 +01:00
epenet 5005ba0b4a
Improve typing in philips_js coordinator (#87075) 2023-02-01 12:15:58 +01:00
epenet 2b4796b9ac
Improve typing in unifi services (#87072) 2023-02-01 11:45:04 +01:00
Paulus Schoutsen ad87c4557d
Guard what version we can install ESPHome updates with (#87059)
* 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 (#87058)
Trigger update of update entity when static info updates
2023-01-31 22:13:41 -05:00
tronikos f7ae265760
Google Assistant SDK: platinum quality scale (#86876) 2023-01-31 21:05:56 -05:00
J. Nick Koston faf79d0b50
Ensure humidity is still exported to HomeKit when it is read-only (#87051)
* 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
GitHub Action be73e43989 [ci skip] Translation update 2023-02-01 00:27:42 +00:00
J. Nick Koston 5284837c8f
Add a repair issue when using MariaDB is affected by MDEV-25020 (#87040)
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 (#87042) 2023-01-31 20:37:26 +01:00
Franck Nijhof 5b728a41de
Fix Yamaha MusicCast zone sleep select entity (#87041) 2023-01-31 20:37:11 +01:00
mkmer ee30f5afcc
Honeywell Correct key name (#87018)
* Correct key name

* Logic error around setpoint and auto mode

* Set tempurature and setpoints correctly

* Only high/low in auto.
2023-01-31 12:59:06 -05:00
Michael Hansen 68450734f1
Bump home-assistant-intents to 2023.1.31 (#87034) 2023-01-31 10:23:03 -06:00
Álvaro Fernández Rojas c780334608
Update AEMET-OpenData to v0.2.2 (#87017) 2023-01-31 16:48:51 +01:00
Matrix d6e817aa62
Separate the yolink garage door device from the door sensor (#84561)
* Separate the garage door device from the door sensor

* Bump yolink api to 0.2.1

* fix suggest

* fix typos

* Bump yolink-api to 0.2.6

* Bump version to 0.2.7 and fix rename effects

* change aiohttp min version to 3.8.1
2023-01-31 14:50:19 +01:00
Franck Nijhof 4dba9c09fc
Only report invalid numeric value for sensors once (#87010) 2023-01-31 12:44:18 +01:00
On Freund 35b82db8b0
Rympro integration code fixes (#86734)
* 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
Martin Mauch a28e7e1541
Fix typo in EnOcean (#86868) 2023-01-31 09:49:37 +01:00
Bouwe Westerdijk 7f01d57965
Bump plugwise to v0.27.5 (#87001)
fixes undefined
2023-01-31 09:32:39 +01:00
Michael Davie be25d17e02
Bump env_canada to 0.5.27 (#86996)
fixes undefined
2023-01-31 08:56:27 +01:00
Jan Bouwhuis 33ede351f0
Cleanup code for parsing yaml MQTT config (#86944)
* 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
Paulus Schoutsen 1c4ba61725
Bump ESPHome Dashboard API 1.2.3 (#86997) 2023-01-31 00:05:59 -05:00
Michael Hansen f4654128db
Add synesthesiam as a codeowner on intent (#86998) 2023-01-30 23:46:42 -05:00
Michael Hansen be69c81db5
Prioritize entity names over area names in Assist matching (#86982)
* 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) (#85517)
* 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 (#86995)
* 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
PeteRager e706696271
Nest - Climate shorten line to be less than 88 chars (#86989)
Lines to be less than 88
2023-01-30 19:14:24 -08:00
shbatm 53638ba138
Bump pyisy to 3.1.11 (#86981)
* Bump pyisy to 3.1.10

* Bump pyisy to 3.1.11
2023-01-30 21:36:51 -05:00
puddly 47453420c1
Bump ZHA dependencies (#86979)
Bump ZHA dependency bellows from 0.34.6 to 0.34.7
2023-01-30 21:35:27 -05:00
Bram Kragten 0c383e28c4
Update frontend to 20230130.0 (#86978) 2023-01-30 21:34:26 -05:00
Paulus Schoutsen 98b4a412f7
ESPHome discovered dashboard checks reauth flows (#86993) 2023-01-30 21:32:52 -05:00
GitHub Action da35ac1942 [ci skip] Translation update 2023-01-31 00:25:29 +00:00
mkmer 365ce55d77
Honeywell auto mode invalid attribute (#86728)
fixes undefined
2023-01-31 00:04:00 +01:00
Michael Hansen 28affe91be
Set synesthesiam as codeowner of conversation (#86958) 2023-01-30 23:02:25 +01:00
Paulus Schoutsen 2cdeb6f1cd
Check dashboard when showing reauth form (#86980) 2023-01-30 22:46:42 +01:00
Steven Looman 7e206b5854
Fix error on empty location in ssdp messages (#86970) 2023-01-30 22:43:58 +01:00
Franck Nijhof 1edd00c51f
Allow any state class when using the precipitation device class (#86977) 2023-01-30 22:43:23 +01:00
ollo69 772df02cce
Catch AndroidTV exception on setup (#86819)
fixes undefined
2023-01-30 22:42:32 +01:00
puddly 8337d4613e
ZHA config flow cleanup (#86742)
fixes undefined
2023-01-30 22:21:34 +01:00
Steven Looman 50373500c3
Ensure a proper scope_id is given for IPv6 addresses when initializing the SSDP component (#86975)
fixes undefined
2023-01-30 22:14:48 +01:00
Paul Bottein a8b23d7139
Uses PolledSmartEnergySummation for ZLinky (#86960) 2023-01-30 22:10:55 +01:00
Raman Gupta c715534821
Bump zwave-js-server-python to 0.45.0 (#86771) 2023-01-30 14:27:37 -05:00
Paulus Schoutsen e0f8b5bbd1
Fix some mobile app sensor registration/update issues (#86965)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-30 20:08:19 +01:00
Michael Hansen f7fdaadde0
Performance improvements for Assist (#86966)
* Move hassil recognize into executor

* Bump hassil to 0.2.6

* Disable template parsing in name/area lists

* Don't iterate over hass.config.components directly
2023-01-30 12:25:22 -06:00
Jan Bouwhuis e57dad79fc
Fix MQTT discovery failing after bad config update (#86935)
* 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
J. Nick Koston 00118a6f96
Speed up live history setup if there is no pending data to commit (#86942) 2023-01-30 19:00:34 +01:00
J. Nick Koston f874258e7e
Silence spurious warnings about removing ix_states_entity_id with newer installs (#86961)
* Silence spurious warnings about removing ix_states_entity_id with newer installs

https://ptb.discord.com/channels/330944238910963714/427516175237382144/1069648035459641465

* Silence spurious warnings about removing ix_states_entity_id with newer installs

https://ptb.discord.com/channels/330944238910963714/427516175237382144/1069648035459641465
2023-01-30 12:38:33 -05:00
Erik Montnemery 53c5f02ca2
Remove some dead code from recorder (#86697) 2023-01-30 18:37:48 +01:00
Shay Levy 857df05308
Add Shelly Gen2 update entity for sleeping devices (#86837) 2023-01-30 19:05:13 +02:00
PeteRager d22e670334
Avoid Nest climate set_temperature eating error (#86920)
* Update climate_sdm.py

* Update test case to detect KeyError

* Throw a defined exception if the condition in encoutered

Include keys from device_traits in error message

* Less diagnostic information in error message
2023-01-30 08:01:41 -08:00
Mick Vleeshouwer 98a79dd5a2
Fix ThreeWayHandle sensor in Overkiz integration (#86953)
Fix typo in sensor.py

Fixes https://github.com/home-assistant/core/issues/85913
2023-01-30 17:15:53 +02:00
Tom Puttemans 73cd03255f
Ignore empty payloads from DSMR Reader (#86841)
* Ignore empty payloads from DSMR Reader

* Simplify empty payload handling

If the native value hasn't changed, requesting to store it won't have a performance impact.

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

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-01-30 08:56:57 -05:00
Erik Montnemery d4489faa68
Drop minus sign on negative zero (#86939)
* Drop minus sign on negative zero

* Add tests
2023-01-30 08:31:27 -05:00
Maciej Bieniek 5f57648578
Use more human-readable sensor names in Airly (#86893)
* Use more human-readable sensor names

* Use abbreviations for long names
2023-01-30 08:29:06 -05:00
Ben Dews 21d1c647c5
Add configuration options to OpenAI integration (#86768)
* Added multiple features to OpenAI integration

* Fixed failed test

* Removed features and improved tests

* initiated component before starting options flow
2023-01-30 08:24:11 -05:00
Robert Hillis 032a37b121
Address Google mail late review (#86847) 2023-01-30 14:18:56 +01:00
Franck Nijhof 3b5fd4bd06
Enable Ruff TRY004 (#86811) 2023-01-30 14:06:52 +01:00
mkmer 7368c86ecb
Add Reauth config flow to honeywell (#86170) 2023-01-30 13:57:14 +01:00
Maciej Bieniek cc36848a6d
Use `native_precision` instead of `round` in Accuweather (#86869) 2023-01-30 12:36:24 +01:00
Nick Touran d2e75e4f7a
Add Autofocus, IR lamp, and Wiper switches in ONVIF (#84317)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-30 12:08:07 +01:00
Maciej Bieniek d485630ce9
Use device class ENUM for Accuweather pressure tendency sensor (#86887)
* Use device class ENUM for pressure tendency sensor

* Format
2023-01-30 12:03:23 +01:00
Franck Nijhof c56832bb2c
Enable Ruff SIM300 (#86793) 2023-01-30 11:03:23 +01:00
Franck Nijhof 9ac8f9aa37
Revert "Adjust D-Link entity naming" (#86936) 2023-01-30 10:56:56 +01:00
Robert Hillis 709d1cb8af
Adjust D-Link entity naming (#86906) 2023-01-30 10:29:12 +01:00
Malte Franken 92a833b192
Bump aio_geojson_generic_client to 0.3 (#86918) 2023-01-30 10:11:41 +01:00
J. Nick Koston 4e9bd09d39
Fix old indices not being removed in schema migration leading to slow MySQL queries (#86917)
fixes #83787
2023-01-29 21:33:23 -05:00
GitHub Action b82ecfdd28 [ci skip] Translation update 2023-01-30 00:21:11 +00:00
J. Nick Koston 0f4b17755e
Improve logging and handling when websocket gets behind (#86854)
fixes undefined
2023-01-29 10:49:27 -10:00
J. Nick Koston c612a92cfb
Use python defaults for comparing State, LazyState, and Event objects (#86856)
* Speed up comparing State and Event objects

Use default python implementation for State and Event __hash__ and __eq__

The default implementation compared based on the id() of the object
which is effectively what we want here anyways. These overrides are
left over from the days when these used to be attrs objects

By avoiding implementing these ourselves all of the equality checks
can happen in native code

* tweak

* adjust tests

* write out some more

* fix test to not compare objects

* more test fixes

* more test fixes

* correct stats tests

* fix more tests

* fix more tests

* update sensor recorder tests
2023-01-29 13:31:43 -05:00
Allen Porter 4f965f0eca
Bump pyrainbird to 2.0.0 (#86851) 2023-01-29 15:11:56 +01:00
Joakim Sørensen 569bf3bb76
Bump pytautulli from 21.11.0 to 23.1.1 (#86891) 2023-01-29 15:07:05 +01:00
Malte Franken 344a0c55a5
Add integration_type to geo_json_events (#86878)
define integration type
2023-01-29 15:02:13 +01:00
Thomas Schamm 11e125f2e8
Add Bosch SHC description and host form strings (#86897)
* Add description to setup SHC II. Add missing host info in reauth_confirm

* Remove template value in en.json
2023-01-29 15:00:36 +01:00
J. Nick Koston 691a234090
Cache the names and area lists in the default agent (#86874)
* Cache the names and area lists in the default agent

fixes #86803

* add coverage to make sure the entity cache busts

* add areas test

* cover the last line
2023-01-29 07:16:29 -05:00
Maciej Bieniek eebc338c3b
Support `native_precision` in Airly integration (#86843)
* Use native_precision

* Refactor extra_state_attributes
2023-01-29 11:44:23 +01:00
J. Nick Koston 58de7b8df0
Fix v32 schema migration when MySQL global.time_zone is configured with non-UTC timezone (#86867)
* Fix v32 schema migration when MySQL timezone is not UTC

* tweak
2023-01-28 22:06:07 -05:00
Martin Hjelmare b1e939d1f1
Fix tradfri air quality device class (#86861) 2023-01-28 22:05:31 -05:00
J. Nick Koston ec3475910f
Improve websocket throughput of state changes (#86855)
After the start event we tend to get an event storm of state
changes which can get the websocket behind. #86854 will
help with that a bit, but we can reduce the overhead
to build a state diff when the attributes have not
changed
2023-01-28 22:05:06 -05:00
Robert Hillis 799edd90aa
Fix D-Link attributes (#86842)
* Fix D-Link attributes

* fix blocking call
2023-01-28 22:03:58 -05:00
GitHub Action 0f6f63da64 [ci skip] Translation update 2023-01-29 00:26:29 +00:00
Paul Bottein e93bfa6556
Update frontend to 20230128.0 (#86838) 2023-01-28 18:49:29 -05:00
Jan Bouwhuis 6a94a58325
Correct stale doc string for MQTT tag platform (#86862) 2023-01-29 00:23:22 +02:00
PeteRager a7ddd592fb
Nest improve error message on climate actions (#86853)
* Nest - Climate - Error Messages

1. Error messages were incorrect for some methods, for example async_set_temperature was reporting failure to set hvac_mode. This is corrected.
2. Error messages were incomplete and were not including the entity_id,and the operation being performed that failed.
3. Add unit tests to test the exception handling

* Move tests into exiisting error test

* Improve readability of error message
2023-01-28 12:58:28 -08:00
Allen Porter 733798f483
Fix nest climate set temperature error message string (#86852) 2023-01-28 11:02:46 -08:00
J. Nick Koston af5fd74d6f
Bump ismartgate to 5.0.0 (#86830)
python 3.11 support

changelog: https://github.com/bdraco/ismartgate/compare/v4.0.4...v5.0.0
2023-01-28 07:14:36 +01:00
Luca Angemi efd2817221
Add state class to nest legacy sensors (#86810)
* Add state class to nest legacy sensors

Add state class (measurement) to humidity and temperature for the nest legacy sensors.

* Update

Update
2023-01-27 21:20:51 -08:00
J. Nick Koston d97a061285
Chunk MariaDB and Postgresql data migration to avoid running out of buffer space (#86680)
* Chunk MariaDB data migration to avoid running out of buffer space

This will make the migration slower but since the innodb_buffer_pool_size
is using the defaul to 128M and not tuned to the db size there is a
risk of running out of buffer space for large databases

* Update homeassistant/components/recorder/migration.py

* hard code since bandit thinks its an injection

* Update homeassistant/components/recorder/migration.py

* guard against manually modified data/corrupt db

* adjust to 10k per chunk

* adjust to 50k per chunk

* memory still just fine at 250k

* but slower

* commit after each chunk to reduce lock pressure

* adjust

* set to 0 if null so we do not loop forever (this should only happen if the data is missing)

* set to 0 if null so we do not loop forever (this should only happen if the data is missing)

* tweak

* tweak

* limit cleanup

* lower limit to give some more buffer

* lower limit to give some more buffer

* where required for sqlite

* sqlite can wipe as many as needed with no limit

* limit on mysql only

* chunk postgres

* fix limit

* tweak

* fix reference

* fix

* tweak for ram

* postgres memory reduction

* defer cleanup

* fix

* same order
2023-01-27 22:39:45 -05:00
shbatm e2edbc4259
Check for missing ISY994 Z-Wave Properties (#86829)
* Check for missing Z-Wave Properties

* Fix black from mobile
2023-01-27 22:16:28 -05:00
J. Nick Koston d0c7f42559
Fix Bluetooth discoveries missing between restarts (#86808)
* Fix Bluetooth discoveries missing between restarts

* do not load other integrations

* coverage
2023-01-27 22:16:16 -05:00
Robert Hillis adb0d85511
Fix D-Link config flow auth (#86824) 2023-01-27 21:38:25 -05:00
GitHub Action 072f228e4d [ci skip] Translation update 2023-01-28 00:23:36 +00:00
Shay Levy 803cd8d9a3
Handle state unknown if last state is missing in Shelly (#86813)
Shelly - handle state unknown if last state is missing
2023-01-27 23:34:56 +01:00
Bouwe Westerdijk 661f7e1522
Bump plugwise to v0.27.4 (#86812)
fixes undefined
2023-01-27 20:00:44 +01:00
Franck Nijhof 8f74bff354
Enable Ruff PLC0414 (#86799) 2023-01-27 16:32:04 +01:00
Franck Nijhof 8c993116e1
Enable Ruff SIM401 (#86790)
* Enable Ruff SIM401

* Adjust found cases
2023-01-27 13:08:44 +01:00
epenet 561fc2d771
Remove deprecated unit system properties (#86643)
* Remove deprecated unit system properties

* Fix tests
2023-01-27 12:09:26 +01:00
Franck Nijhof a79885ceaf
Enable Ruff SIM117 (#86783) 2023-01-27 11:52:49 +01:00
Shay Levy ae6bc96002
Shelly code quality (#86733) 2023-01-27 10:47:05 +02:00
Malte Franken bd9a8ba6f1
Bump aio_georss_gdacs to 0.8 (#86761)
bump aio_georss_gdacs to 0.8
2023-01-27 08:44:30 +01:00
Jesse Hills 78207121c0
Remove esphome password from config flow data if not needed (#86763)
* Remove esphome password if not needed

* Add test

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-01-26 21:45:51 -05:00
Paulus Schoutsen 687184138c
ESPHome update: Store reference to runtime data, not one of its values (#86762)
Store reference to runtime data, not one of its values
2023-01-26 21:45:42 -05:00
Franck Nijhof e738924780
Enable Ruff SIM105 (#86759)
* Enable Ruff SIM105

* Adjust existing cases
2023-01-26 21:06:22 -05:00
GitHub Action 71d7098530 [ci skip] Translation update 2023-01-27 00:25:12 +00:00
Aaron Bach 020d52c3e2
Fix state class issues in Ambient PWS (#86758)
fixes undefined
2023-01-27 00:14:46 +01:00
Marc Mueller b84cf3a3d9
Improve `bosch_shc` config_flow typing (#86739) 2023-01-26 23:39:12 +01:00
Shay Levy 2c8cb13034
Bump aioshelly to 5.3.1 (#86751) 2023-01-27 00:34:31 +02:00
Paulus Schoutsen 9cd48b4999
OpenAI: Fix device without model (#86754) 2023-01-26 23:25:02 +01:00
Marc Mueller caa1ba7e13
Improve nuki typing (#86736)
* Use NukiCoordinator

* Make NukiEntity generic

* Remove unnecessary ABC
2023-01-26 23:03:36 +02:00
mkmer 138a522d2e
Bump AIOAladdinConnect to 0.1.54 (#86749) 2023-01-26 23:00:54 +02:00
Franck Nijhof 7ed9967245
Fix state classes for duration device class (#86727) 2023-01-26 17:26:52 +01:00
epenet b3380261d7
Add hints to get_service in azure service bus (#86694) 2023-01-26 17:20:52 +01:00
epenet 2bef69c6a7
Add hints to get_service in integrations (1/2) (#86692) 2023-01-26 16:56:57 +01:00