Skip to content

Commit 58c6fcb

Browse files
Merge pull request #78 from struk77/patch-1
[Fix] Replaced deprecated class DEVICE_CLASS_SPEAKER
2 parents 9fc6999 + c4f4293 commit 58c6fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/smartthings_soundbar/media_player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from homeassistant.components.media_player import (
77
MediaPlayerEntity,
88
MediaPlayerEntityFeature,
9+
MediaPlayerDeviceClass,
910
PLATFORM_SCHEMA,
10-
DEVICE_CLASS_SPEAKER,
1111
)
1212
from homeassistant.const import (
1313
CONF_NAME, CONF_API_KEY, CONF_DEVICE_ID
@@ -103,7 +103,7 @@ def select_sound_mode(self, sound_mode):
103103

104104
@property
105105
def device_class(self):
106-
return DEVICE_CLASS_SPEAKER
106+
return MediaPlayerDeviceClass.SPEAKER
107107

108108
@property
109109
def supported_features(self):

0 commit comments

Comments
 (0)