Skip to content

Commit

Permalink
Fix some entity naming (#95562)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 29, 2023
1 parent 33be262 commit 9cace8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions homeassistant/components/sonos/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ async def async_service_handle(service_call: ServiceCall) -> None:
class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
"""Representation of a Sonos entity."""

_attr_name = None
_attr_supported_features = (
MediaPlayerEntityFeature.BROWSE_MEDIA
| MediaPlayerEntityFeature.CLEAR_PLAYLIST
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/wled/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def __init__(

# Segment 0 uses a simpler name, which is more natural for when using
# a single segment / using WLED with one big LED strip.
if segment != 0:
if segment == 0:
self._attr_name = None
else:
self._attr_name = f"Segment {segment}"

self._attr_unique_id = (
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/xiaomi_miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class MiroboVacuum(
):
"""Representation of a Xiaomi Vacuum cleaner robot."""

_attr_name = None
_attr_supported_features = (
VacuumEntityFeature.STATE
| VacuumEntityFeature.PAUSE
Expand Down

0 comments on commit 9cace8e

Please sign in to comment.