mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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."""
|
||||
|
||||
on_key: str
|
||||
on_value: StateType | list[StateType]
|
||||
on_value: StateType
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
@ -62,8 +62,6 @@ class RenaultBinarySensor(
|
||||
if (data := self._get_data_attr(self.entity_description.on_key)) is 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
|
||||
|
||||
|
||||
|
@ -155,7 +155,6 @@
|
||||
"state": {
|
||||
"unplugged": "Unplugged",
|
||||
"plugged": "Plugged in",
|
||||
"plugged_waiting_for_charge": "Plugged in, waiting for charge",
|
||||
"plug_error": "Plug error",
|
||||
"plug_unknown": "Plug unknown"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user