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):
|
||||
"""LMS Status based sensor from LMS via cooridnatior."""
|
||||
"""LMS Status based sensor from LMS via coordinator."""
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
|
@ -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]:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user