Use MediaPlayerDeviceClass for UniFi Protect media_player (#63708)
This commit is contained in:
parent
0232021f5c
commit
dec22aa510
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ from pyunifiprotect.data import Camera
|
|||
from pyunifiprotect.exceptions import StreamError
|
||||
|
||||
from homeassistant.components.media_player import (
|
||||
DEVICE_CLASS_SPEAKER,
|
||||
MediaPlayerDeviceClass,
|
||||
MediaPlayerEntity,
|
||||
MediaPlayerEntityDescription,
|
||||
)
|
||||
|
@ -64,7 +64,7 @@ class ProtectMediaPlayer(ProtectDeviceEntity, MediaPlayerEntity):
|
|||
|
||||
self.device: Camera = camera
|
||||
self.entity_description = MediaPlayerEntityDescription(
|
||||
key="speaker", device_class=DEVICE_CLASS_SPEAKER
|
||||
key="speaker", device_class=MediaPlayerDeviceClass.SPEAKER
|
||||
)
|
||||
super().__init__(data)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue