Fix the check for Mac address in kef integration (#106072)
It might be due to an update of `getmac` dependency in some case the mac
was resolved to "00:00:00:00:00:00" instead of the anticipated `None`.
With that the original bug #47678 where a duplicated entity would be
created in case of HA is restarted while the KEF speaker is offline
came back. The PR #52902 was applied back in time to fix that issue.
Now, this change is a continuation of the previous efforts. The solution
was tested for about two months and it does address the bug with
creating duplicated entities in case of KEF speakers being offline.
* switcher: added support for device_key logic included in aioswitcher==3.4.1
* switcher: small fix
* switcher: after lint
* switcher: fix missing device_key in tests
* remove device_key function
* fix missing device_key in tests
* Add unique home ID device dispatch
* Adding fixture for new setup
* Minor refactor work
* Add check for unlinked to different homes
* If the interface returns an error
* Proper error handling
* Feedback fixes
* Comments for error in client
* Typo
* Update homeassistant/components/tado/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update devices fix standard
* Dispatch out of loop
* Update dispatcher
* Clean up
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* zoneminder setup retry connection
Makes ZM setup be async for enabling connection retry attempts
This also requires zm-py version bump v0.5.4 as that
dependency was patched in conjunction to resolve this issue
Closes#105271
Signed-off-by: Nic Boet <nic@boet.cc>
* ruff format
Signed-off-by: Nic Boet <nic@boet.cc>
* ruff fixes
Signed-off-by: Nic Boet <nic@boet.cc>
* RequestsConnectionError
Signed-off-by: Nic Boet <nic@boet.cc>
* revert async changes
Signed-off-by: Nic Boet <nic@boet.cc>
---------
Signed-off-by: Nic Boet <nic@boet.cc>
* Add support for the Spotify DJ playlist by mocking the playlist response
Add error handling for playlist lookup to ensure it doesn't break current playback state loading
* Run linters
Add exception type to playlist lookup error handling
* Fix typo in comment
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Prevent toggle from calling stop on covers which do not support it
* Update homeassistant/components/cover/__init__.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* bug: prevent invalid key when empty invereter arrays is returned.
Some envoy fw versions return an empty inverter array
every 4 hours when no production is taking place.
Prevent collection failure due to this as other data
seems fine. Inveretrs will show unknown during this cycle.
* refactor: replace try/catch with test and make warning debug
* Update homeassistant/components/enphase_envoy/sensor.py
* Update homeassistant/components/enphase_envoy/sensor.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>