diff --git a/custom_components/epson_projector_link/manifest.json b/custom_components/epson_projector_link/manifest.json index df1b68d..c4e9ff7 100755 --- a/custom_components/epson_projector_link/manifest.json +++ b/custom_components/epson_projector_link/manifest.json @@ -8,5 +8,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/amosyuen/ha-epson-projector-link/issues", "requirements": ["pyserial_asyncio>=0.4", "async_timeout>=3.0.0"], - "version": "0.0.0" + "version": "1.0.0" } diff --git a/custom_components/epson_projector_link/media_player.py b/custom_components/epson_projector_link/media_player.py index c9d1733..dd3f569 100644 --- a/custom_components/epson_projector_link/media_player.py +++ b/custom_components/epson_projector_link/media_player.py @@ -229,6 +229,7 @@ def __init__( self._attr_source_list = None self._attr_state = None self._attr_supported_features = _get_supported_features(poll_properties) + self._attr_translation_key = "projector" projector.set_callback(self._callback) diff --git a/custom_components/epson_projector_link/strings.json b/custom_components/epson_projector_link/strings.json index cb54e72..b237880 100755 --- a/custom_components/epson_projector_link/strings.json +++ b/custom_components/epson_projector_link/strings.json @@ -1,10 +1,14 @@ { - "state": { + "entity": { "media_player": { - "cooldown": "Cooldown", - "on": "[%key:common::state::on%]", - "off": "[%key:common::state::off%]", - "warmup": "Warmup" + "projector": { + "state": { + "cooldown": "Cooldown", + "on": "On", + "off": "Off", + "warmup": "Warmup" + } + } } }, "config": { diff --git a/custom_components/epson_projector_link/translations/en.json b/custom_components/epson_projector_link/translations/en.json index 4ffa3fe..418eba8 100755 --- a/custom_components/epson_projector_link/translations/en.json +++ b/custom_components/epson_projector_link/translations/en.json @@ -1,10 +1,14 @@ { - "state": { + "entity": { "media_player": { - "cooldown": "Cooldown", - "on": "On", - "off": "Off", - "warmup": "Warmup" + "projector": { + "state": { + "cooldown": "Cooldown", + "on": "On", + "off": "Off", + "warmup": "Warmup" + } + } } }, "config": { diff --git a/hacs.json b/hacs.json index 86c087b..0a8a093 100755 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "Epson Projector Link", "hacs": "1.6.0", - "homeassistant": "0.118.0", + "homeassistant": "2023.4.0", "render_readme": true }