Update comments in 3 Squeezebox platforms (#149065)

This commit is contained in:
peteS-UK 2025-07-19 15:42:21 +01:00 committed by GitHub
parent 440a20340e
commit 05f686cb86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 9 deletions

View File

@ -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:

View File

@ -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

View File

@ -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: