mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Update comments in 3 Squeezebox platforms (#149065)
This commit is contained in:
parent
440a20340e
commit
05f686cb86
@ -49,7 +49,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
|
|
||||||
class ServerStatusBinarySensor(LMSStatusEntity, BinarySensorEntity):
|
class ServerStatusBinarySensor(LMSStatusEntity, BinarySensorEntity):
|
||||||
"""LMS Status based sensor from LMS via cooridnatior."""
|
"""LMS Status based sensor from LMS via coordinator."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool:
|
def is_on(self) -> bool:
|
||||||
|
@ -226,10 +226,7 @@ def get_announce_timeout(extra: dict) -> int | None:
|
|||||||
|
|
||||||
|
|
||||||
class SqueezeBoxMediaPlayerEntity(SqueezeboxEntity, MediaPlayerEntity):
|
class SqueezeBoxMediaPlayerEntity(SqueezeboxEntity, MediaPlayerEntity):
|
||||||
"""Representation of the media player features of a SqueezeBox device.
|
"""Representation of the media player features of a SqueezeBox device."""
|
||||||
|
|
||||||
Wraps a pysqueezebox.Player() object.
|
|
||||||
"""
|
|
||||||
|
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
MediaPlayerEntityFeature.BROWSE_MEDIA
|
MediaPlayerEntityFeature.BROWSE_MEDIA
|
||||||
@ -286,9 +283,11 @@ class SqueezeBoxMediaPlayerEntity(SqueezeboxEntity, MediaPlayerEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def browse_limit(self) -> int:
|
def browse_limit(self) -> int:
|
||||||
"""Return the step to be used for volume up down."""
|
"""Return the max number of items to return from browse."""
|
||||||
return self.coordinator.config_entry.options.get( # type: ignore[no-any-return]
|
return int(
|
||||||
CONF_BROWSE_LIMIT, DEFAULT_BROWSE_LIMIT
|
self.coordinator.config_entry.options.get(
|
||||||
|
CONF_BROWSE_LIMIT, DEFAULT_BROWSE_LIMIT
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -88,7 +88,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
|
|
||||||
class ServerStatusSensor(LMSStatusEntity, SensorEntity):
|
class ServerStatusSensor(LMSStatusEntity, SensorEntity):
|
||||||
"""LMS Status based sensor from LMS via cooridnatior."""
|
"""LMS Status based sensor from LMS via coordinator."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def native_value(self) -> StateType:
|
def native_value(self) -> StateType:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user