Use EntityCategory enum for MusicCast entity types (#62303)
parent
eb292fbfbd
commit
0540c9455d
|
@ -9,11 +9,7 @@ from homeassistant.components.media_player.const import (
|
|||
REPEAT_MODE_OFF,
|
||||
REPEAT_MODE_ONE,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
ENTITY_CATEGORY_CONFIG,
|
||||
ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
ENTITY_CATEGORY_SYSTEM,
|
||||
)
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
|
||||
DOMAIN = "yamaha_musiccast"
|
||||
|
||||
|
@ -51,10 +47,9 @@ MEDIA_CLASS_MAPPING = {
|
|||
}
|
||||
|
||||
ENTITY_CATEGORY_MAPPING = {
|
||||
EntityType.CONFIG: ENTITY_CATEGORY_CONFIG,
|
||||
EntityType.CONFIG: EntityCategory.CONFIG,
|
||||
EntityType.REGULAR: None,
|
||||
EntityType.DIAGNOSTIC: ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
EntityType.SYSTEM: ENTITY_CATEGORY_SYSTEM,
|
||||
EntityType.DIAGNOSTIC: EntityCategory.DIAGNOSTIC,
|
||||
}
|
||||
|
||||
DEVICE_CLASS_MAPPING = {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/yamaha_musiccast",
|
||||
"requirements": [
|
||||
"aiomusiccast==0.14.2"
|
||||
"aiomusiccast==0.14.3"
|
||||
],
|
||||
"ssdp": [
|
||||
{
|
||||
|
|
|
@ -219,7 +219,7 @@ aiolyric==1.0.8
|
|||
aiomodernforms==0.1.8
|
||||
|
||||
# homeassistant.components.yamaha_musiccast
|
||||
aiomusiccast==0.14.2
|
||||
aiomusiccast==0.14.3
|
||||
|
||||
# homeassistant.components.nanoleaf
|
||||
aionanoleaf==0.1.1
|
||||
|
|
|
@ -152,7 +152,7 @@ aiolyric==1.0.8
|
|||
aiomodernforms==0.1.8
|
||||
|
||||
# homeassistant.components.yamaha_musiccast
|
||||
aiomusiccast==0.14.2
|
||||
aiomusiccast==0.14.3
|
||||
|
||||
# homeassistant.components.nanoleaf
|
||||
aionanoleaf==0.1.1
|
||||
|
|
Loading…
Reference in New Issue