Small fixes for LG soundbar (#75938)

This commit is contained in:
MasonCrawford 2022-07-31 19:32:40 +08:00 committed by GitHub
parent 1e115341af
commit ee273daf8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -47,7 +47,6 @@ class LGDevice(MediaPlayerEntity):
self._port = port self._port = port
self._attr_unique_id = unique_id self._attr_unique_id = unique_id
self._name = None
self._volume = 0 self._volume = 0
self._volume_min = 0 self._volume_min = 0
self._volume_max = 0 self._volume_max = 0
@ -94,8 +93,6 @@ class LGDevice(MediaPlayerEntity):
elif response["msg"] == "SPK_LIST_VIEW_INFO": elif response["msg"] == "SPK_LIST_VIEW_INFO":
if "i_vol" in data: if "i_vol" in data:
self._volume = data["i_vol"] self._volume = data["i_vol"]
if "s_user_name" in data:
self._name = data["s_user_name"]
if "i_vol_min" in data: if "i_vol_min" in data:
self._volume_min = data["i_vol_min"] self._volume_min = data["i_vol_min"]
if "i_vol_max" in data: if "i_vol_max" in data:

View File

@ -11,8 +11,7 @@
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
}, },
"abort": { "abort": {
"existing_instance_updated": "Updated existing configuration.", "already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
} }
} }
} }

View File

@ -1,8 +1,7 @@
{ {
"config": { "config": {
"abort": { "abort": {
"already_configured": "Service is already configured", "already_configured": "Device is already configured"
"existing_instance_updated": "Updated existing configuration."
}, },
"error": { "error": {
"cannot_connect": "Failed to connect" "cannot_connect": "Failed to connect"