Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom_components/smartthings_soundbar/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from homeassistant.components.media_player import (
MediaPlayerEntity,
MediaPlayerEntityFeature,
MediaPlayerDeviceClass,
PLATFORM_SCHEMA,
DEVICE_CLASS_SPEAKER,
)
from homeassistant.const import (
CONF_NAME, CONF_API_KEY, CONF_DEVICE_ID
Expand Down Expand Up @@ -103,7 +103,7 @@ def select_sound_mode(self, sound_mode):

@property
def device_class(self):
return DEVICE_CLASS_SPEAKER
return MediaPlayerDeviceClass.SPEAKER

@property
def supported_features(self):
Expand Down
Loading