Commit Graph

15448 Commits (fb00cd8963a6153ea26e71b343018284ed50c238)

Author SHA1 Message Date
Erik Montnemery 8559af8232
Remove extra otbr config entries (#96785) 2023-07-17 21:23:20 +02:00
Erik Montnemery 1e3fdcc4d1
Prevent otbr creating multiple config entries (#96783) 2023-07-17 21:22:50 +02:00
Joakim Plate d02bf837a6
Add some basic tests for gardena (#96777) 2023-07-17 21:13:13 +02:00
Maciej Bieniek 31dfa5561a
Add external power sensor for Shelly Plus HT (#96768)
* Add external power sensor for Plus HT

* Tests
2023-07-17 22:07:24 +03:00
Joost Lekkerkerker e99b6b2a03
Migrate VeSync to has entity name (#96772)
* Migrate VeSync to has entity name

* Fix tests
2023-07-17 17:52:53 +02:00
Joost Lekkerkerker 7ccb06ed22
Add entity translations to Twentemilieu (#96762) 2023-07-17 17:26:13 +02:00
Björn e29b6408f6
Periodically re-scan for Fronius inverters that were offline while setup (#96538) 2023-07-17 10:16:28 +02:00
Jan Bouwhuis 65ebb6a74f
Improve imap error handling for config entry (#96724)
* Improve error handling config entry

* Removed CancelledError

* Add cleanup

* Do not call protected async_set_state()
2023-07-17 09:44:47 +02:00
J. Nick Koston 3a06659120
Speed up single entity/response service calls (#96729)
* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* revert

* cannot be inside pytest.raises

* one more

* Update homeassistant/helpers/service.py
2023-07-17 09:33:13 +02:00
Maximilian c76fac0633
Bump pynina to 0.3.1 (#96693) 2023-07-17 09:27:01 +02:00
Robert Hafner 33d2dd3797
Airvisual Pro Outside Station Support (#96618)
* Airvisual Pro Outside Station Support

* pr feedback

* formatting, language

* Update homeassistant/components/airvisual_pro/strings.json

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* fix assertion on airvisual test

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-17 00:44:03 +02:00
Joost Lekkerkerker 28540b0cb2
Migrate google assistant to has entity name (#96593)
* Migrate google assistant to has entity name

* Fix tests

* Add device name

* Update homeassistant/components/google_assistant/button.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-07-16 17:39:27 +02:00
J. Nick Koston 4d3e24465c
Bump bthome-ble to 3.0.0 (#96616) 2023-07-15 21:47:09 -10:00
Dennis edcae75812
Add UV Index and UV Health Concern sensors to tomorrow.io (#96534) 2023-07-15 14:58:40 -04:00
J. Nick Koston 62c5194bc8
Avoid compressing binary images on ingress (#96581) 2023-07-15 00:09:25 -10:00
J. Nick Koston 1c814b0ee3
Defer SSDP UPNP server start until the started event (#96555) 2023-07-14 14:28:29 -10:00
ollo69 c95e2c074c
Add missing type hints for AndroidTV (#96554)
* Add missing type hints for AndroidTV

* Suggested change
2023-07-15 02:18:34 +02:00
Joost Lekkerkerker 81ce6e4797
Add entity translations to Sonos (#96167)
* Add entity translations to Sonos

* Add entity translations to Sonos

* Add entity translations to Sonos

* Add entity translations to Sonos
2023-07-15 00:36:26 +02:00
J. Nick Koston b77de2abaf
Handle empty strings for ESPHome UOMs (#96556) 2023-07-14 12:14:32 -10:00
Jan Bouwhuis 72458b6672
Add feature to turn off using IMAP-Push on an IMAP server (#96436)
* Add feature to enforce polling an IMAP server

* Add test

* Remove not needed string tweak

* Rename enforce_polling to enable_push

* Push enabled by default
2023-07-14 21:26:35 +02:00
Joost Lekkerkerker 1b7632a673
Support MyStrom switch 120 (#96535) 2023-07-14 09:04:48 -04:00
Michael Hansen afdded58ee
Wyoming Piper 1.1 (#96490)
* Add voice/speaker options to Piper TTS

* Use description if available

* Fix tests

* Clean up if
2023-07-14 08:56:27 -04:00
Erik Montnemery 7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Erik Montnemery 8440f14a08
Correct dlna_dmr device info (#96480) 2023-07-13 12:15:46 -04:00
Erik Montnemery fbbdebee47
Correct unifi device info (#96483) 2023-07-13 12:14:31 -04:00
J. Nick Koston ffe81a9716
Improve ESPHome update platform error reporting (#96455) 2023-07-12 16:46:29 -10:00
J. Nick Koston 7009683226
Ensure ESPHome dashboard connection recovers if its down when core starts (#96449) 2023-07-12 14:37:28 -10:00
Michael 400c513209
Always add guest wifi qr code entity in AVM Fritz!Tools (#96435) 2023-07-12 20:54:48 +02:00
Joakim Plate f7ce9b1688
Add support for gardena bluetooth (#95179)
Add support for gardena bluetooth based water computers.
2023-07-12 16:08:15 +02:00
ollo69 ce3c23cb3a
Add Nut commands to diagnostics data (#96285)
* Add Nut commands to diagnostics data

* Add test for diagnostics
2023-07-12 10:56:08 +02:00
J. Nick Koston 5d5c58338f
Fix ESPHome deep sleep devices staying unavailable after unexpected disconnect (#96353) 2023-07-11 11:12:24 -10:00
Joost Lekkerkerker fe44827e3c
Add entity translations to Rainforest eagle (#96031)
* Add entity translations to Rainforest eagle

* Add entity translations to Rainforest Eagle
2023-07-11 14:24:33 -04:00
Jan Bouwhuis efcaad1179
Fix handling MQTT light brightness from zero rgb (#96286)
* Fix handling MQTT light brightness from zero rgb

* Fix log message
2023-07-11 14:22:12 -04:00
Joost Lekkerkerker fe6402ef73
Use device class naming for sfr box (#96092) 2023-07-11 20:19:04 +02:00
Erik Montnemery 2257e7454a
Remove unreferenced issues (#96264)
* Remove unreferenced issues

* Remove outdated tests
2023-07-11 14:15:16 -04:00
J. Nick Koston b106ca7983
Fix race fetching ESPHome dashboard when there are no devices set up (#96196)
* Fix fetching ESPHome dashboard when there are no devices setup

fixes #96194

* coverage

* fix
2023-07-11 14:11:51 -04:00
puddly b6e83be6f9
Fix ZHA serialization issue with warning devices (#96275)
* Bump ZHA dependencies

* Update unit tests to reduce mocks
2023-07-11 14:09:52 -04:00
Jan Bouwhuis 50442c5688
Speedup tests command_line integration (#96349) 2023-07-11 18:31:32 +02:00
G Johansson 49b6c8ed6e
Fix diagnostics Sensibo (#96336) 2023-07-11 18:24:40 +02:00
Erik Montnemery c61c5a0443
Schedule `VacuumEntity` for removal in Home Assistant Core 2024.2 (#96236) 2023-07-11 18:20:00 +02:00
Michael 5a87186916
Improve integration startup in AVM Fritz!Tools (#96269) 2023-07-11 18:01:05 +02:00
Jan Bouwhuis f12f8bca03
Avoid CI fail in command_line tests (#96324)
* Avoid CI fail in command_line tests

* Speedup tests manual update
2023-07-11 15:27:31 +02:00
Jan Bouwhuis f3e55e96f4
Improve test coverage mqtt vacuum (#96288) 2023-07-11 10:16:00 +02:00
Jan Bouwhuis beff19f93c
Improve mqtt tag schema logging and avoid tests that use xfail (#95711)
Improve schema logging and tests
2023-07-11 10:12:31 +02:00
Jan Bouwhuis 30578d6236
Deprecate mqtt vacuum with legacy schema (#95836)
* Deprecate mqtt vacuum with legacy schema

* Consistent comments

* Correct comment

* Remove persistence option

* Adjust string, mention restart

* Update deprecation comment
2023-07-11 09:54:28 +02:00
Paulus Schoutsen eee8566694
Differentiate between device info types (#95641)
* Differentiate between device info types

* Update allowed fields

* Update homeassistant/helpers/entity_platform.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Split up message in 2 lines

* Use dict for device info types

* Extract device info function and test error checking

* Simplify parsing device info

* move checks around

* Simplify more

* Move error checking around

* Fix order

* fallback config entry title to domain

* Remove fallback for name to config entry domain

* Ensure mocked configuration URLs are strings

* one more test case

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-07-10 09:56:06 -04:00
Guido Schmitz a3681774d6
Use snapshots in devolo Home Network sensor tests (#95104)
Use snapshots

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-07-10 15:49:08 +02:00
Erik Montnemery 39208a3749
Remove unsupported vacuum service handlers (#95787)
* Prevent implementing unsupported vacuum service handlers

* Remove unsupported service handlers

* Update test
2023-07-10 15:03:40 +02:00
Erik Montnemery 08a5f63474
Add deprecated_yaml issue to the homeassistant integration (#95980)
* Add deprecated_yaml issue to the homeassistant integration

* Update test

* Update homeassistant/components/homeassistant/strings.json

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Include DOMAIN in issue_id

* Update test

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-07-10 13:06:52 +02:00
Erik Montnemery 96c71b214f
Check supported features in calls to vacuum services (#95833)
* Check supported features in vacuum services

* Update tests

* Add comment
2023-07-10 13:05:47 +02:00
J. Nick Koston 7dc03ef301
Use the ESPHome object_id to suggest the entity id (#95852) 2023-07-10 13:02:34 +02:00
Erik Montnemery 87f284c7e9
Add MEDIA_ANNOUNCE to MediaPlayerEntityFeature (#95906) 2023-07-10 12:58:53 +02:00
Allen Porter c4a39bbfb1
Remove Legacy Works With Nest (#96111)
* Remove Legacy Works With Nest

* Simplify nest configuration

* Cleanup legacy nest config entries
2023-07-09 19:38:05 -07:00
Allen Porter 32b3fa1734
Enable retries on rainbird devices by loading model and version (#96190)
Update rainbird to load device model and version
2023-07-09 16:49:44 -07:00
J. Nick Koston 995fb993e6
Avoid probing ESPHome devices when we do not have the encryption key (#95820) 2023-07-09 12:57:04 -10:00
Chris Talkington 7390e3a997
Refactor IPP tests (#94097)
refactor ipp tests
2023-07-09 17:37:32 -05:00
G Johansson 0546e7601c
Enhance diagnostics for Sensibo (#96150)
* Diag Sensibo

* Fix snapshot
2023-07-09 22:50:12 +02:00
J. Nick Koston bc28d7f33e
Add slots to bluetooth manager (#95881) 2023-07-09 10:06:26 -10:00
Matthias Alphart 89259865fb
Restore KNX telegram history (#95800)
* Restore KNX telegram history

* increase default log size

* test removal of telegram history
2023-07-09 21:15:55 +02:00
Joost Lekkerkerker 8bbb395bec
Add entity translations to Speedtest.net (#96168)
* Add entity translations to Speedtest.net

* Fix tests
2023-07-09 20:20:39 +02:00
Luke ab3b0c9075
Add error sensor to Roborock (#96209)
add error sensor
2023-07-09 20:17:19 +02:00
Joost Lekkerkerker 9ef4b2e5f5
Migrate ring to entity name (#96080)
Migrate ring to has entity name
2023-07-09 13:55:10 -04:00
Matthias Alphart 479015244d
KNX Cover: Use absolute tilt position if available (#96192) 2023-07-09 12:00:51 +02:00
J. Nick Koston 6758292655
Add bthome logbook platform (#96171) 2023-07-08 21:42:48 -10:00
G Johansson 2ebc265184
Bump pysensibo to 1.0.31 (#96154) 2023-07-08 09:23:11 -10:00
dougiteixeira 4b1d096e6b
Add `device_class` and `state_class` in config flow for SQL (#95020)
* Add device_class and state_class in config flow for SQL

* Update when selected NONE_SENTINEL

* Add tests

* Use SensorDeviceClass and SensorStateClass in tests

* Add volatile_organic_compounds_parts in strings selector

* Add test_attributes_from_entry_config

* Remove test_attributes_from_entry_config and complement test_device_state_class

* Add test_attributes_from_entry_config in test_sensor.py
2023-07-08 21:00:22 +02:00
Joost Lekkerkerker 2c9910d9b6
Use default MyStrom devicetype if not present (#96070)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-07-08 17:10:51 +02:00
Joost Lekkerkerker 598610e313
Add entity translations to Sensibo (#96091) 2023-07-08 16:50:46 +02:00
J. Nick Koston e39f023e3f
Refactor ESPHome camera to avoid creating tasks (#95818) 2023-07-08 12:36:40 +02:00
Álvaro Fernández Rojas 1eb2ddf010
Update aioairzone-cloud to v0.2.1 (#96063) 2023-07-08 11:41:39 +02:00
Erik Montnemery 6dae3553f2
Add MEDIA_ENQUEUE to MediaPlayerEntityFeature (#95905) 2023-07-08 10:55:25 +02:00
J. Nick Koston 2b4f6ffcd6
Speed up hassio ingress (#95777) 2023-07-08 10:50:39 +02:00
Scott Giminiani f4ad261f51
Use global CONF_API_TOKEN constant rather than defining our own (#96120) 2023-07-08 10:46:34 +02:00
J. Nick Koston e38f55fdb6
Move ESPHomeManager into its own file (#95870)
* Move ESPHomeManager into its own file

This is not a functional change. This is only a reorganization
ahead of some more test coverage being added so moving tests
around can be avoided later.

* relos

* fixes

* merge a portion of new cover since its small and allows us to remove the __init__ from .coveragerc
2023-07-08 09:19:44 +02:00
Robert Hillis 8bfac2c46c
Correct Goalzero sensor state class (#96122) 2023-07-08 08:52:15 +02:00
Joost Lekkerkerker ddd0d3faa2
Get MyStrom device state before checking support (#96004)
* Get device state before checking support

* Add full default device response to test

* Add test mocks

* Add test coverage
2023-07-07 11:24:41 -04:00
Jan Stienstra 1aecbb9bd5
Add full test coverage to Jellyfin (#86974)
* Add full test coverage

* Remove unreachable exception

* Remove comment line. Conflicting with codecov

* Use auto fixture and syrupy
2023-07-07 08:42:02 -04:00
Joost Lekkerkerker 84979f8e92
Use device class naming in Renault (#96038) 2023-07-07 10:34:11 +02:00
Scott Giminiani 66a1e5c2c1
Remove copy/pasted references to GMail in YouTube integration tests (#96048)
These were likely used as an example when writing the tests for this
component and we missed renaming them.

A few unused vars with references to GMail were also removed.
2023-07-07 06:43:46 +02:00
Mike Woudenberg ba1266a893
Add sensors to LOQED integration for battery percentage and BLE stength (#95726)
* Add sensors for battery percentage and BLE stength

* Use translatable name for BLE strength, no longer pass enity to sensor
2023-07-06 23:09:34 -04:00
Joost Lekkerkerker d2bcb5fa87
Add entity translations to Rainbird (#96030)
* Add entity translations to Rainbird

* Add entity translations to Rainbird
2023-07-06 16:03:01 -07:00
lymanepp 6c4b5291e1
Add humidity to NWS forecast (#95575)
* Add humidity to NWS forecast to address https://github.com/home-assistant/core/issues/95572

* Use pynws 1.5.0 enhancements for probabilityOfPrecipitation, dewpoint, and relativeHumidity.

* Update requirements to match pynws version

* test for clear night

* update docstring

---------

Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
2023-07-06 23:05:46 +02:00
Joost Lekkerkerker 99430ceb34
Add entity translations for PureEnergie (#95935)
* Add entity translations for PureEnergie

* Fix tests
2023-07-06 22:51:05 +02:00
Guillaume Duveau 23d5fb9622
Add more device info for SmartThings devices (#95723)
* Add more device info for SmartThings devices

* Fix binary_sensor test

* Fix binary sensor test, try 2

* Fix and add SmartsThings new device info tests
2023-07-06 14:26:46 -04:00
puddly ecc0917e8f
Migrate bracketed IP addresses in ZHA config entry (#95917)
* Automatically correct IP addresses surrounded by brackets

* Simplify regex

* Move pattern inline

* Maintain old behavior of stripping whitespace
2023-07-06 11:47:51 -04:00
Bram Kragten 5d9533fb90
Make script services always respond when asked (#95991)
* Make script services always respond when asked

* Update test_init.py
2023-07-06 10:48:03 -04:00
Adrián Moreno 0e428f8d39
Deprecate Dry and Fan preset modes in favor of HVAC modes (#95634)
* zwave_js: deprecate Dry and Fan preset modes

Migrating Dry and Fan presets to HVAC modes

* Move consts. Set Dry and Fan as HVAC-first modes.

* Update homeassistant/components/zwave_js/climate.py

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>

* Fix tests

* Keep track of HA release when deprecation was introduced

---------

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2023-07-05 15:12:21 -04:00
J. Nick Koston dc5ee71d7a
Add slots to core EventBus (#95856) 2023-07-05 11:47:24 -05:00
Jan Bouwhuis d9721702af
Address late review of freebox tests (#95910)
Use lower case for local variables
2023-07-05 16:59:10 +02:00
Erik Montnemery c7f6d84058
Warn when changing multipan channel if there are not 2 known users (#95898)
* Warn when changing multipan channel if there are not 2 known users

* Add test

* Improve messages

* Tweak translation string

* Adjust message

* Remove unused translation placeholders
2023-07-05 16:51:28 +02:00
J. Nick Koston ea57f78392
Add slots to the service registry (#95857) 2023-07-05 15:59:36 +02:00
Florent Thiery bd7057f7b1
Add raid array degraded state binary sensor to freebox sensors (#95242)
Add raid array degraded state binary sensor
2023-07-05 15:09:12 +02:00
J. Nick Koston 505f8fa363
Fix ESPHome camera not accepting the same exact image bytes (#95822) 2023-07-05 07:17:28 -05:00
Aaron Collins f028d1a1ca
Bump pydaikin 2.10.5 (#95656) 2023-07-05 07:12:18 -05:00
J. Nick Koston b2e708834f
Add slots to the StateMachine class (#95849) 2023-07-05 14:00:37 +02:00
Erik Montnemery 39dcb5a2b5
Adjust services and properties supported by roborock vacuum (#95789)
* Update supported features

* Raise issue when vacuum.start_pause is called
2023-07-05 12:53:07 +02:00
J. Nick Koston 659281aab6
Fix ESPHome alarm_control_panel when state is missing (#95871) 2023-07-05 08:35:40 +02:00
Allen Porter 26f2fabd85
Fix timezones used in list events (#95804)
* Fix timezones used in list events

* Add additional tests that catch floating vs timezone datetime comparisons
2023-07-05 08:25:03 +02:00
Álvaro Fernández Rojas 60e2ee86b2
Add Airzone Cloud Zone running binary sensor (#95606) 2023-07-04 14:29:14 -05:00
Martin Hjelmare 02192ddf82
Set Matter battery sensors as diagnostic (#95794)
* Set matter battery sensor to diagnostic

* Update tests

* Use new eve contact sensor dump across the board

* Assert entity category

* Complete typing
2023-07-04 14:54:37 +02:00
Erik Montnemery 2ca648584d
Update mqtt vacuum supported features (#95830)
* Update mqtt vacuum supported features

* Update test
2023-07-04 14:18:42 +02:00
Erik Montnemery 8f2a21d270
Update sharkiq vacuum supported features (#95829) 2023-07-04 11:51:42 +02:00
Erik Montnemery 10e9b9f813
Fix ring siren test (#95825) 2023-07-04 09:16:40 +02:00
Joost Lekkerkerker 234ebdcb84
Add entity translations for P1 Monitor (#95811) 2023-07-04 08:39:24 +02:00
Allen Porter 2f73be0e50
Ensure that calendar output values are json types (#95797) 2023-07-03 12:05:02 -07:00
Erik Montnemery 78880f0c9d
Fix execute device actions with WS execute_script (#95783) 2023-07-03 14:21:01 -04:00
Erik Montnemery 5f9da06e49
Fix flaky websocket_api test (#95786) 2023-07-03 11:53:21 -05:00
tronikos 4e7d8b579a
Address Opower review comments (#95763)
* Address comments

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update sensor.py

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-03 14:53:44 +02:00
hidaris 3bd8955e0e
Add Matter Climate support (#95434)
* Add Matter Climate support

* update set target temp and update callback

* remove print

* remove optional property

* Adjust the code to improve readability.

* add thermostat test

* Remove irrelevant cases in setting the target temperature.

* add temp range support

* update hvac action

* support adjust low high setpoint..

* support set hvac mode

* address some review feedback

* move some methods around

* dont discover climate in switch platform

* set some default values

* fix some of the tests

* fix some typos

* Update thermostat.json

* Update homeassistant/components/matter/climate.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/matter/climate.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* support heat_cool in hvac_modes

* address some review feedback

* handle hvac mode param in set temp service

* check hvac modes by featuremap

* add comment to thermostat feature class

* make ruff happy..

* use enum to enhance readability.

* use builtin feature bitmap

* fix target temp range and address some feedback

* use instance attribute instead of class attr

* make ruff happy...

* address feedback about single case

* add init docstring

* more test

* fix typo in tests

* make ruff happy

* fix hvac modes test

* test case for update callback

* remove optional check

* more tests

* more tests

* update all attributes in the update callback

* Update climate.py

* fix missing test

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-03 12:33:50 +02:00
J. Nick Koston 7bdd64a3f7
Handle invalid utf-8 from the ESPHome dashboard (#95743)
If the yaml file has invalid utf-8, the config flow would raise an
unhandled exception. Allow the encryption key to be entered manually
in this case instead of a hard failure

fixes #92772
2023-07-02 22:47:25 -04:00
dougiteixeira 75bdb03363
Fix source device when source entity is changed for Utility Meter (#95636)
* Fix source device when source entity is changed

* Update loop

* Complement and add comments in the test_change_device_source test

* Only clean up dev reg when options change

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-07-02 22:46:21 -04:00
Allen Porter 7d6595f755
Delete the local calendar store when removing the config entry (#95599)
* Delete calendar store when removing the config entry

* Unlink file on remove with tests
2023-07-02 22:42:39 -04:00
J. Nick Koston b24c6adc75
Avoid regex for negative zero check in sensor (#95691)
* Avoid regex for negative zero check in sensor

We can avoid calling the regex for every sensor value
since most of the time values are not negative zero

* tweak

* tweak

* Apply suggestions from code review

* simpler

* cover

* safer and still fast

* safer and still fast

* prep for py3.11

* fix check

* add missing cover

* more coverage

* coverage

* coverage
2023-07-02 21:53:50 -04:00
Mike Woudenberg ab50069918
Quality improvement on LOQED integration (#95725)
Remove generated translation
Raise error correctly
Remove obsolete consts
Remove callback, hass assignment and info log
Use name from LOQED API instead of default name
Correct entity name for assertion
2023-07-02 21:52:52 -04:00
tronikos caaeb28cbb
Add Opower integration for getting electricity/gas usage and cost for many utilities (#90489)
* Create Opower integration

* fix tests

* Update config_flow.py

* Update coordinator.py

* Update sensor.py

* Update sensor.py

* Update coordinator.py

* Bump opower==0.0.4

* Ignore errors for "recent" PGE accounts

* Add type for forecasts

* Bump opower to 0.0.5

* Bump opower to 0.0.6

* Bump opower to 0.0.7

* Update requirements_all.txt

* Update requirements_test_all.txt

* Update coordinator

Fix exception caused by https://github.com/home-assistant/core/pull/92095
{} is dict but the function expects a set so change it to set()

* Improve exceptions handling

* Bump opower==0.0.9

* Bump opower to 0.0.10

* Bump opower to 0.0.11

* fix issue when integration hasn't run for 30 days

use last stat time instead of now when fetching recent usage/cost

* Allow username to be changed in reauth

* Don't allow changing  username in reauth flow
2023-07-02 21:26:31 -04:00
Joost Lekkerkerker 2807b6cabc
Add entity translations to kaleidescape (#95625) 2023-07-02 19:35:05 +02:00
Denis Shulyaka 7026ea643e
Add action attribute to generic hygrostat (#95675)
* add action attribute to generic hygrostat

* Simplified initialization
2023-07-02 17:51:11 +02:00
Jan Bouwhuis b314e2b1a1
Fix songpal test_setup_failed test (#95712) 2023-07-02 16:32:43 +02:00
J. Nick Koston f0cb03e631
Handle missing or incorrect device name and unique id for ESPHome during manual add (#95678)
* Handle incorrect or missing device name for ESPHome noise encryption

If we did not have the device name during setup we could never
get the key from the dashboard. The device will send us
its name if we try encryption which allows us to find the
right key from the dashboard.

This should help get users unstuck when they change the key
and cannot get the device back online after deleting and
trying to set it up again manually

* bump lib to get name

* tweak

* reduce number of connections

* less connections when we know we will fail

* coverage shows it works but it does not

* add more coverage

* fix test

* bump again
2023-07-02 10:29:45 -04:00
ollo69 8108a0f947
Add Bridge module to AsusWRT (#84152)
* Add Bridge module to AsusWRT

* Requested changes

* Requested changes

* Requested changes

* Add check on router attributes value
2023-07-01 13:55:28 +02:00
Matthias Alphart c81b6255c2
Use `async_on_remove` for KNX entities removal (#95658)
* Use `async_on_remove` for KNX entities removal

* review
2023-07-01 07:16:45 -04:00
dougiteixeira c6210b68bd
Fix device source for Riemann sum integral (#95622)
Fix Device Source
2023-06-30 14:49:00 -04:00
dougiteixeira c472ead4fd
Fix device source for Threshold (#95623)
Fix Device Source
2023-06-30 14:48:36 -04:00
dougiteixeira 11146ff40b
Fix device source for Derivative (#95621)
Fix Device Source
2023-06-30 14:29:44 -04:00
Michael Hansen 6b8ae0ec86
Ensure trigger sentences do not contain punctuation (#95633)
* Ensure trigger sentences do not contain punctuation

* Update homeassistant/components/conversation/trigger.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-30 13:06:26 -05:00
Brett Adams d4e40ed73f
Fix Diagnostics in Advantage Air (#95608)
* Fix diag paths

* Fix key sand add redactions

* Name things better.

* Add super basic test

* Rename docstring

* Add snapshot

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-30 13:52:52 -04:00
Aaron Bach 39e0662fc8
Add ability to configure map icons for PurpleAir (#86124) 2023-06-30 08:35:19 -06:00
Joost Lekkerkerker 4ac92d755e
Add config flow for zodiac (#95447)
* Add config flow for zodiac

* Add config flow for zodiac

* Fix feedback
2023-06-30 12:58:07 +02:00
tronikos 17ceacd083
Google Assistant SDK: Always enable conversation agent and support multiple languages (#93201)
* Enable agent and support multiple languages

* fix test
2023-06-29 23:00:17 -04:00
dougiteixeira f2f0c38fae
Fix device source for Utility Meter (#95585)
* Fix Device Source

* Remove debug
2023-06-29 21:52:48 -04:00
Allen Porter 7252c33df8
Limit fields returned for the list events service (#95506)
* Limit fields returned for the list events service

* Update websocket tests and fix bugs in response fields

* Omit 'None' fields in the list events response
2023-06-29 13:25:25 -04:00
Luke 3474f46b09
Bump Roborock to 0.29.2 (#95549)
* init work

* fix tests
2023-06-29 13:13:37 -04:00
J. Nick Koston e3e1bef376
Fix manual specification of multiple advertise_ip with HomeKit (#95548)
fixes #95508
2023-06-29 11:35:32 -04:00
Marcel van der Veldt e9d8fff0dd
Bump Matter Server to 3.6.3 (#95519) 2023-06-29 15:28:34 +02:00
Franck Nijhof a3ffa0aed7
Revert "Remove Brottsplatskartan YAML configuration (#94101)" (#95521) 2023-06-29 12:03:42 +02:00
Franck Nijhof a6cfef3029
Revert "Remove qbittorrent YAML configuration (#93548)" (#95522) 2023-06-29 12:01:26 +02:00
Franck Nijhof 06d47185fe
Revert "Remove snapcast YAML configuration (#93547)" (#95523) 2023-06-29 12:00:41 +02:00
Franck Nijhof 34ac541493
Revert "Remove Workday YAML configuration (#94102)" (#95524) 2023-06-29 12:00:13 +02:00
Evan Jarrett 2205f62cc1
Update matter locks to support pin code validation (#95481)
Update matter locks to support PINCode validation based on device attributes
2023-06-29 11:29:54 +02:00
Brandon Rothweiler c93c3bbdcd
Remove incompatible button entities for Mazda electric vehicles (#95486)
* Remove incompatible button entities for Mazda electric vehicles

* Update tests
2023-06-28 21:46:08 -04:00
Matthias Alphart 1615f3e1fd
Add reload service to KNX (#95489) 2023-06-28 21:45:17 -04:00
puddly 392e2af2b7
Bump ZHA dependencies (#95478)
* Bump ZHA dependencies

* Account for new EZSP metadata keys
2023-06-28 18:35:05 -04:00
Michael Hansen 487dd3f956
Add targeted entities to sentence debug API (#95480)
* Return targets with debug sentence API

* Update test

* Update homeassistant/components/conversation/__init__.py

* Include area/domain in test sentences

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-28 18:34:43 -04:00
Marcel van der Veldt 0b81550092
Fix Matter entity names (#95477) 2023-06-28 23:40:12 +02:00
Barry Williams aaf2846a53
Add Update Entity for Linn devices (#95217)
* added update entity for Linn devices

* Update homeassistant/components/openhome/update.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* use parent methods for version attributes

* fixed issue with mocking openhome device

* Update homeassistant/components/openhome/update.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* update entity name in tests

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-06-28 16:06:24 -04:00
Eric Severance 03dac6e171
Remove polling_interval_seconds option from wemo (#95468) 2023-06-28 20:27:10 +02:00
Michael b64be798df
Fix qr code data update in AVM Fritz!Tools (#95470)
* use async_update

* improve tests

* use async_image
2023-06-28 19:57:03 +02:00
Michael Hansen 79f1c86789
Bump home-assistant-intents to 2023.6.28 (#95451) 2023-06-28 19:35:18 +02:00
Joost Lekkerkerker ecfb259438
Add entity translations to iBeacon (#95460)
* Add entity translations to iBeacon

* Add entity translations to iBeacon
2023-06-28 19:32:58 +02:00
Olen 4959fce1e0
Fix setting number of digits for verisure lock PIN (#95449)
* Fix error when setting number of digits

* Update test_config_flow.py

Add test for empty code
2023-06-28 19:18:45 +02:00