mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Small fixes for LG soundbar (#75938)
This commit is contained in:
parent
1e115341af
commit
ee273daf8d
@ -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:
|
||||||
|
@ -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%]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user