Commit Graph
8 Commits
Author SHA1 Message Date
jjlawren a7fd477c64 Refactor Sonos polling (#65722)
* Refactor Sonos polling

Explicitly rename fallback polling
Catch soco exceptions centrally where possible
Create SonosPollingEntity subclass
Remove unnecessary soco_error fixture argument
Remove unnecessary polling in update_volume()
Adjust log levels and wording
Set explicit timeout on library

* Adjust logging to use raised exceptions

* Simplify availabiliity checks when using built-in poller

* Fix typing for return values
2022-02-08 12:17:05 -06:00
jjlawren 740a8c33ee Add audio_delay number entity to Sonos (#63566) 2022-01-10 16:04:40 +01:00
epenetandepenet e01b0a3625 Add setup type hints to sonos, unifi and wake_on_lan (#62876)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-27 23:42:24 +01:00
jjlawrenandJ. Nick Koston 4475e88707 Fix Sonos updating when entities are disabled (#62456)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-21 20:36:12 -08:00
epenet c59ae54dc8 Use new enums in sonos (#62202) 2021-12-17 13:35:21 -06:00
jjlawren 171b57bf32 Use _attrs where possible in Sonos (#60931) 2021-12-03 10:57:19 -08:00
jjlawren de9e48174f Change unnecessary Sonos coroutine to callback (#60643) 2021-11-30 17:35:29 +01:00
jjlawren a88cc8b98c Move Sonos bass & treble controls to number entities (#60498) 2021-11-29 16:00:37 +01:00