diff --git a/homeassistant/components/yamaha_musiccast/const.py b/homeassistant/components/yamaha_musiccast/const.py index 470b3729c08..21b7de82184 100644 --- a/homeassistant/components/yamaha_musiccast/const.py +++ b/homeassistant/components/yamaha_musiccast/const.py @@ -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 = { diff --git a/homeassistant/components/yamaha_musiccast/manifest.json b/homeassistant/components/yamaha_musiccast/manifest.json index 329fa2354d5..7d07d57fc28 100644 --- a/homeassistant/components/yamaha_musiccast/manifest.json +++ b/homeassistant/components/yamaha_musiccast/manifest.json @@ -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": [ { diff --git a/requirements_all.txt b/requirements_all.txt index 2734e6309b2..aa4fac79245 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 102bf1d3e5f..38ae0552e51 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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