Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Robert Hillis
73ba7a989b
Make Sonos typing more complete ( #68072 )
2022-09-05 13:12:37 -05:00
Franck Nijhof
5f728b955e
Migrate Sonos to new entity naming style ( #74909 )
2022-07-10 13:19:13 -07:00
jjlawren
ac88d0be14
Add Sonos favorites sensor ( #70235 )
2022-04-21 10:37:16 -07:00
jjlawren
4d944e35fd
Skip polling Sonos audio input sensor when idle ( #66271 )
2022-02-10 12:48:13 -08:00
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
epenet
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
jjlawren
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
cbf2bf2e1f
Add audio input format sensor to Sonos HT devices ( #60884 )
2021-12-03 10:06:56 -08:00
jjlawren
5a20d9fce3
Set Sonos alarm and battery entity categories ( #58340 )
2021-10-24 12:52:15 -10:00
jjlawren
084fd2d19f
Expose Sonos features as switch entities ( #54502 )
...
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-10-23 23:11:27 +02:00
Robert Hillis
488a636aec
Clean up unused loggers ( #57662 )
2021-10-14 10:03:38 -07:00
Erik Montnemery
e558b3463e
Move temperature conversions to sensor base class (6/8) ( #54476 )
...
* Move temperature conversions to entity base class (6/8)
* Fix tests
2021-08-12 17:40:55 +02:00
jjlawren
39e62f9c90
Improve Sonos polling ( #51170 )
...
* Improve Sonos polling
Warn user if polling is being used
Provide callback IP:port to help user fix networking
Fix radio handling when polling (no event payload)
Clarify dispatch target to reflect polling action
* Lint
* Revert method removal
2021-05-28 12:07:58 +02:00
jjlawren
1e86818f85
Add battery support for Sonos S1 speakers ( #50864 )
2021-05-25 18:39:31 +02:00
jjlawren
d6a202bd74
Move core Sonos functionality out of entities ( #50277 )
2021-05-11 10:36:40 -07:00
jjlawren
adba82de8b
Do not pass hass.data to Sonos entities ( #49881 )
2021-04-30 07:01:09 +02:00
jjlawren
d4ed65e0f5
Add power binary_sensor support to Sonos ( #49730 )
...
* Add power binary_sensor support to Sonos
* Prepare for future unloading of config entries
* Remove unnecessary calls to super() inits
* Add binary_sensor to tests, remove invalid test for empty battery payload
* Move sensor added_to_hass to common sensor class
* Avoid dispatching sensors if no battery
* Use proper attributes property
* Remove power source fallback
* Update homeassistant/components/sonos/speaker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-27 04:52:05 -10:00
jjlawren
dc50524f32
Cleanup implementation of new Sonos sensors ( #49716 )
2021-04-26 23:59:04 +02:00
jjlawren
3be8c9c1c0
Add battery support for Sonos speakers ( #49441 )
...
Co-authored-by: Walter Huf <hufman@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-25 07:20:21 -10:00