mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Remove obsolete code in Renault integration (#143808)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user