mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove obsolete code in Renault integration (#143808)
This commit is contained in:
parent
5cd4c8e896
commit
6d8654610e
@ -31,7 +31,7 @@ class RenaultBinarySensorEntityDescription(
|
|||||||
"""Class describing Renault binary sensor entities."""
|
"""Class describing Renault binary sensor entities."""
|
||||||
|
|
||||||
on_key: str
|
on_key: str
|
||||||
on_value: StateType | list[StateType]
|
on_value: StateType
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
@ -62,8 +62,6 @@ class RenaultBinarySensor(
|
|||||||
if (data := self._get_data_attr(self.entity_description.on_key)) is None:
|
if (data := self._get_data_attr(self.entity_description.on_key)) is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if isinstance(self.entity_description.on_value, list):
|
|
||||||
return data in self.entity_description.on_value
|
|
||||||
return data == self.entity_description.on_value
|
return data == self.entity_description.on_value
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,7 +155,6 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"unplugged": "Unplugged",
|
"unplugged": "Unplugged",
|
||||||
"plugged": "Plugged in",
|
"plugged": "Plugged in",
|
||||||
"plugged_waiting_for_charge": "Plugged in, waiting for charge",
|
|
||||||
"plug_error": "Plug error",
|
"plug_error": "Plug error",
|
||||||
"plug_unknown": "Plug unknown"
|
"plug_unknown": "Plug unknown"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user