Skip to content

Commit

Permalink
Fix BangOlufsenSource missing usb in
Browse files Browse the repository at this point in the history
Use Icon translations
Remove static icons for some entities
  • Loading branch information
mj23000 committed Nov 13, 2024
1 parent be1098c commit 12e8cf9
Show file tree
Hide file tree
Showing 9 changed files with 355 additions and 23 deletions.
1 change: 0 additions & 1 deletion custom_components/bang_olufsen/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def __init__(self, config_entry: BangOlufsenConfigEntry) -> None:
class BangOlufsenBinarySensorBatteryCharging(BangOlufsenBinarySensor):
"""Battery charging Binary Sensor."""

_attr_icon = "mdi:battery-charging"
_attr_translation_key = "battery_charging"

def __init__(self, config_entry: BangOlufsenConfigEntry) -> None:
Expand Down
1 change: 1 addition & 0 deletions custom_components/bang_olufsen/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class BangOlufsenSource:
SPDIF: Final[Source] = Source(name="Optical", id="spdif")
UNKNOWN: Final[Source] = Source(name="Unknown Source", id="unknown")
URI_STREAMER: Final[Source] = Source(name="Audio Streamer", id="uriStreamer")
USB_IN: Final[Source] = Source(name="USB", id="usbIn")


BANG_OLUFSEN_STATES: dict[str, MediaPlayerState] = {
Expand Down
3 changes: 0 additions & 3 deletions custom_components/bang_olufsen/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ class BangOlufsenButtonEvent(BangOlufsenEvent):

_attr_device_class = EventDeviceClass.BUTTON
_attr_event_types = DEVICE_BUTTON_EVENTS
_attr_icon = "mdi:gesture-tap-button"

def __init__(self, config_entry: BangOlufsenConfigEntry, button_type: str) -> None:
"""Initialize Button."""
Expand Down Expand Up @@ -138,7 +137,6 @@ class BangOlufsenRemoteKeyEvent(BangOlufsenEvent):

_attr_device_class = EventDeviceClass.BUTTON
_attr_event_types = BEO_REMOTE_KEY_EVENTS
_attr_icon = "mdi:remote"

def __init__(
self,
Expand Down Expand Up @@ -183,7 +181,6 @@ class BangOlufsenEventProximity(BangOlufsenEvent):

_attr_device_class = EventDeviceClass.MOTION
_attr_event_types = PROXIMITY_EVENTS
_attr_icon = "mdi:account-question"
_attr_translation_key = "proximity"

def __init__(self, config_entry: BangOlufsenConfigEntry) -> None:
Expand Down
Loading

0 comments on commit 12e8cf9

Please sign in to comment.