Commit Graph

17471 Commits (4fb482610baaf0fa627bef1ca732c8a0dfc003f0)

Author SHA1 Message Date
Allen Porter caacdabd3d
Fix rainbird unique id (#99704)
* Don't set a unique id for devices with no serial

* Add additional check for the same config entry host/port when there is no serial

* Update homeassistant/components/rainbird/config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/rainbird/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/rainbird/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

---------

Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-24 14:48:17 +02:00
Erik Montnemery 88f379d08f
Fix handling of unit system change in sensor (#100715) 2023-09-23 13:45:50 +02:00
Simone Chemelli bb8850e8cf
Bump aiocomelit to 0.0.8 (#100714)
* Bump aiocomelit to 0.0.8

* fix import

* fix tests
2023-09-23 13:45:47 +02:00
Jan Bouwhuis 556e40add5
Fix mqtt light rgbww update without state topic (#100707)
* Fix mqtt light rgbww update without state topic

* Add @callback decprator and correct mired conv
2023-09-23 13:45:44 +02:00
Ståle Storø Hauknes 50a41f516d
Fix Airthings ble migration (#100362)
* Import Platform for tests

* Migration bugfix

* Store new unique id as a variable in tests

* Add comments to tests
2023-09-23 13:44:45 +02:00
Luke Lashley 094666005e
Bump python-roborock to 0.34.0 (#100236) 2023-09-23 13:37:03 +02:00
starkillerOG d2b5ffc9fc
Netgear catch no info error (#100212) 2023-09-23 13:37:00 +02:00
Diogo Gomes f50d47121e
Always update unit of measurement of the utility_meter on state change (#99102) 2023-09-23 13:36:51 +02:00
Joakim Sørensen 7b9ae6755a Bump hass-nabucasa from 0.70.0 to 0.71.0 (#100193)
Bump hass-nabucasa from 0.70.0 to 0.71.1
2023-09-12 13:01:31 -04:00
Jan Bouwhuis 63647d96dd Fix entity name attribute on mqtt entity is not removed on update (#100187)
Fix entity name attribute is not remove on update
2023-09-12 12:04:56 -04:00
Erik Montnemery 1b494fb4ba Bump hatasmota to 0.7.3 (#100169) 2023-09-12 12:04:54 -04:00
Michael d1bc6df14f Fix AVM Fritz!Tools update entity (#100151)
* move update entity to coordinator

* fix tests
2023-09-12 12:04:50 -04:00
Erik Montnemery 8e2fa67cfd Bump hatasmota to 0.7.2 (#100129) 2023-09-12 12:04:47 -04:00
Erik Montnemery 7a4a792b7b Fix TriggerEntity.async_added_to_hass (#100119) 2023-09-12 12:04:45 -04:00
Mike Degatano 2cb84274ec Fix addon slug validation (#100070)
* Fix addon slug validation

* Don't redefine compile
2023-09-12 12:04:43 -04:00
J. Nick Koston 3d09e859fc Avoid probing ipp printers for unique_id when it is available via mdns (#99982)
* Avoid probing ipp printers for unique_id when it is available via mdns

We would always probe the device in the ipp flow and than
abort if it was already configured. We avoid the probe for
most printers.

* dry

* coverage

* fix test

* add test for updating host
2023-09-12 12:04:37 -04:00
Bouwe Westerdijk 7cdb4ec852 Bump plugwise to v0.32.2 (#99973)
* Bump plugwise to v0.32.2

* Adapt number.py to the backend updates

* Update related test-cases

* Update plugwise test-fixtures

* Update test_diagnostics.py
2023-09-12 12:04:35 -04:00
Raman Gupta e6c2833032 Handle disconnects in zwave_js repair flow (#99964)
* Handle disconnects in zwave_js repair flow

* Combine logic to reduce LoC

* only check once
2023-09-12 12:04:33 -04:00
Ståle Storø Hauknes f0b6367444 Airthings BLE unique id migration (#99832)
* Fix sensor unique id

* Add sensor identifiers

* Migrate entities to new unique id

* Fix linting issues

* Fix crash when migrating entity fails

* Change how entities are migrated

* Remve debug logging

* Remove unneeded async

* Remove migration code from init file

* Add migration code to sensor.py

* Adjust for loops to improve speed

* Bugfixes, improve documentation

* Remove old comment

* Remove unused function parameter

* Address PR feedback

* Add tests

* Improve tests and test data

* Refactor test

* Update logger level

Co-authored-by: J. Nick Koston <nick@koston.org>

* Adjust PR comments

* Address more PR comments

* Address PR comments and adjust tests

* Fix PR comment

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-12 12:04:29 -04:00
puddly 8e6ec01bfb Cache device trigger info during ZHA startup (#99764)
* Do not connect to the radio hardware within `_connect_zigpy_app`

* Make `connect_zigpy_app` public

* Create radio manager instances from config entries

* Cache device triggers on startup

* reorg zha init

* don't reuse gateway

* don't nuke yaml configuration

* review comments

* Fix existing unit tests

* Ensure `app.shutdown` is called, not just `app.disconnect`

* Revert creating group entities and device registry entries early

* Add unit tests

---------

Co-authored-by: David F. Mulcahey <david.mulcahey@icloud.com>
2023-09-12 12:04:28 -04:00
jan iversen 7235de1a0c Make modbus retry fast on read errors (#99576)
* Fast retry on read errors.

* Review comments.
2023-09-12 12:04:26 -04:00
jan iversen d399ebb8e1 Read modbus data before scan_interval (#99243)
Read before scan_interval.
2023-09-12 12:04:25 -04:00
jan iversen d5ff05bdf5 Remove modbus pragma no cover and solve nan (#99221)
* Remove pragma no cover.

* Ruff !

* Review comments.

* update test.

* Review.

* review.

* Add slave test.
2023-09-12 12:02:02 -04:00
Erik Montnemery ff393f6b86 Bump hatasmota to 0.7.1 (#99818) 2023-09-08 21:02:43 +02:00
Erik Montnemery f753f5af6e Make WS command render_template not give up if initial render raises (#99808) 2023-09-08 21:02:42 +02:00
J. Nick Koston 55533350d2 Bump zeroconf to 0.93.1 (#99516)
* Bump zeroconf to 0.92.0

changelog: https://github.com/python-zeroconf/python-zeroconf/compare/0.91.1...0.92.0

* drop unused argument

* Update tests/components/thread/test_diagnostics.py

* lint

* again

* bump again since actions failed to release the wheels
2023-09-08 20:55:01 +02:00
Simone Chemelli d50f9f4e51 Bump aiovodafone to 0.1.0 (#99851)
* bump aiovodafone to 0.1.0

* fix tests
2023-09-08 20:46:12 +02:00
Erik Montnemery 850c095988 Improve error handling in /api/states POST (#99810) 2023-09-08 20:46:09 +02:00
Erik Montnemery 31fb9d12ea Always set severity level flag on render_template error events (#99804) 2023-09-08 20:46:08 +02:00
lymanepp 590ac173ed Fix missing dew point and humidity in tomorrowio forecasts (#99793)
* Fix missing dew point and humidity in tomorrowio forecasts

* Add assertion for correct parameters to realtime_and_all_forecasts method
2023-09-08 20:46:07 +02:00
Quentame fb56e48e07 Fix Freebox Home battery sensor (#99756) 2023-09-08 20:44:43 +02:00
Quentame 718f1a6673 Fix Freebox disk free space sensor (#99757)
* Fix Freebox disk free space sensor

* Add initial value assert to check results
2023-09-08 20:44:19 +02:00
Jan Bouwhuis 64408cab10 Handle alexa invalid climate temp adjustment (#99740)
* Handle temp adjust when target state not set

* Update homeassistant/components/alexa/errors.py

Co-authored-by: Robert Resch <robert@resch.dev>

* black

---------

Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-08 19:59:30 +02:00
Erik Montnemery 067f946129 Send template render errors to template helper preview (#99716) 2023-09-06 16:09:01 +02:00
Robert Svensson e486ad735d Bump aiounifi to v61 (#99686)
* Bump aiounifi to v61

* Alter a test to cover the upstream change
2023-09-06 10:56:51 +02:00
puddly aa32b658b2 Fix ZHA startup creating entities with non-unique IDs (#99679)
* Make the ZHAGateway initialization restartable so entities are unique

* Add a unit test
2023-09-06 10:43:29 +02:00
Erik Montnemery 0cbcacbbf5 Include template listener info in template preview (#99669) 2023-09-06 10:43:28 +02:00
Erik Montnemery 9d87e8d02b Allow specifying a custom log function for template render (#99572)
* Allow specifying a custom log function for template render

* Bypass template cache when reporting errors + fix tests

* Send errors as events

* Fix logic for creating new TemplateEnvironment

* Add strict mode back

* Only send error events if report_errors is True

* Force test of websocket_api only

* Debug test

* Run pytest with higher verbosity

* Timeout after 1 minute, enable syslog output

* Adjust timeout

* Add debug logs

* Fix unsafe call to WebSocketHandler._send_message

* Remove debug code

* Improve test coverage

* Revert accidental change

* Include severity in error events

* Remove redundant information from error events
2023-09-06 10:43:27 +02:00
Raman Gupta bd0fd9db77 Bump zwave-js-server-python to 0.51.1 (#99652)
* Bump zwave-js-server-python to 0.51.1

* Update test

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-09-05 20:24:50 +02:00
itpeters 9e03f8a8d6 Fix long press event for matter generic switch (#99645) 2023-09-05 20:24:48 +02:00
Erik Montnemery 0520cadfa6 Revert "Deprecate timer start optional duration parameter" (#99613)
Revert "Deprecate timer start optional duration parameter (#93471)"

This reverts commit 2ce5b08fc3.
2023-09-04 20:49:42 +02:00
jan iversen c677dae9c1 Modbus switch, allow restore "unknown" (#99533) 2023-09-04 20:45:32 +02:00
Erik Montnemery 423e8fbde3 Validate state in template helper preview (#99455)
* Validate state in template helper preview

* Deduplicate state validation
2023-09-04 20:45:28 +02:00
Erik Montnemery e5fd6961a8 Set state of entity with invalid state to unknown (#99452)
* Set state of entity with invalid state to unknown

* Add test

* Apply suggestions from code review

Co-authored-by: Robert Resch <robert@resch.dev>

* Update test_entity.py

---------

Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-04 20:45:27 +02:00
Erik Montnemery 2a5f8ee4a7 Don't set assumed_state in fan groups (#99399) 2023-09-04 20:45:24 +02:00
Erik Montnemery 1c2c13c938 Don't set assumed_state in cover groups (#99391) 2023-09-04 20:45:23 +02:00
Russell Cloran e0594bffa1 Enumerate available states in Prometheus startup (#97993) 2023-09-04 20:45:22 +02:00
Allen Porter 269bcac982 Extend template entities with a script section (#96175)
* Extend template entities with a script section

This allows making a trigger entity that triggers a few times a day,
and allows collecting data from a service resopnse which can be
fed into a template entity.

The current alternatives are to publish and subscribe to events or to
store data in input entities.

* Make variables set in actions accessible to templates

* Format code

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-09-04 20:45:21 +02:00
Raman Gupta 8dcc96c083 Fix device name in zwave_js repair flow (#99414) 2023-09-02 21:09:15 +02:00
starkillerOG 270be19e1a Check new IP of Reolink camera from DHCP (#99381)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-02 21:09:14 +02:00