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):
"""LMS Status based sensor from LMS via cooridnatior."""
"""LMS Status based sensor from LMS via coordinator."""
@property
def is_on(self) -> bool:

View File

@ -226,10 +226,7 @@ def get_announce_timeout(extra: dict) -> int | None:
class SqueezeBoxMediaPlayerEntity(SqueezeboxEntity, MediaPlayerEntity):
"""Representation of the media player features of a SqueezeBox device.
Wraps a pysqueezebox.Player() object.
"""
"""Representation of the media player features of a SqueezeBox device."""
_attr_supported_features = (
MediaPlayerEntityFeature.BROWSE_MEDIA
@ -286,10 +283,12 @@ class SqueezeBoxMediaPlayerEntity(SqueezeboxEntity, MediaPlayerEntity):
@property
def browse_limit(self) -> int:
"""Return the step to be used for volume up down."""
return self.coordinator.config_entry.options.get( # type: ignore[no-any-return]
"""Return the max number of items to return from browse."""
return int(
self.coordinator.config_entry.options.get(
CONF_BROWSE_LIMIT, DEFAULT_BROWSE_LIMIT
)
)
@property
def extra_state_attributes(self) -> dict[str, Any]:

View File

@ -88,7 +88,7 @@ async def async_setup_entry(
class ServerStatusSensor(LMSStatusEntity, SensorEntity):
"""LMS Status based sensor from LMS via cooridnatior."""
"""LMS Status based sensor from LMS via coordinator."""
@property
def native_value(self) -> StateType: