mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Remove the door device class from Tessie trunks and charge port (#191632)
This commit is contained in:
@@ -108,7 +108,6 @@ class TessieWindowEntity(TessieEntity, CoverEntity):
|
||||
class TessieChargePortEntity(TessieEntity, CoverEntity):
|
||||
"""Cover entity for the charge port."""
|
||||
|
||||
_attr_device_class = CoverDeviceClass.DOOR
|
||||
_attr_supported_features = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE
|
||||
|
||||
def __init__(self, vehicle: TessieVehicleData) -> None:
|
||||
@@ -137,7 +136,6 @@ class TessieChargePortEntity(TessieEntity, CoverEntity):
|
||||
class TessieFrontTrunkEntity(TessieEntity, CoverEntity):
|
||||
"""Cover entity for the charge port."""
|
||||
|
||||
_attr_device_class = CoverDeviceClass.DOOR
|
||||
_attr_supported_features = CoverEntityFeature.OPEN
|
||||
|
||||
def __init__(self, vehicle: TessieVehicleData) -> None:
|
||||
@@ -160,7 +158,6 @@ class TessieFrontTrunkEntity(TessieEntity, CoverEntity):
|
||||
class TessieRearTrunkEntity(TessieEntity, CoverEntity):
|
||||
"""Cover entity for the charge port."""
|
||||
|
||||
_attr_device_class = CoverDeviceClass.DOOR
|
||||
_attr_supported_features = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE
|
||||
|
||||
def __init__(self, vehicle: TessieVehicleData) -> None:
|
||||
|
||||
@@ -117,6 +117,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"cover": {
|
||||
"charge_state_charge_port_door_open": {
|
||||
"default": "mdi:ev-plug-ccs2"
|
||||
},
|
||||
"vehicle_state_ft": {
|
||||
"default": "mdi:car"
|
||||
},
|
||||
"vehicle_state_rt": {
|
||||
"default": "mdi:car-back"
|
||||
}
|
||||
},
|
||||
"device_tracker": {
|
||||
"location": {
|
||||
"default": "mdi:car",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
'object_id_base': 'Charge port door',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <CoverDeviceClass.DOOR: 'door'>,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Charge port door',
|
||||
'platform': 'tessie',
|
||||
@@ -39,7 +39,6 @@
|
||||
# name: test_covers[cover.test_charge_port_door-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'door',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Charge port door',
|
||||
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: False,
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 3>,
|
||||
@@ -77,7 +76,7 @@
|
||||
'object_id_base': 'Frunk',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <CoverDeviceClass.DOOR: 'door'>,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Frunk',
|
||||
'platform': 'tessie',
|
||||
@@ -92,7 +91,6 @@
|
||||
# name: test_covers[cover.test_frunk-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'door',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Frunk',
|
||||
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: True,
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 1>,
|
||||
@@ -183,7 +181,7 @@
|
||||
'object_id_base': 'Trunk',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <CoverDeviceClass.DOOR: 'door'>,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Trunk',
|
||||
'platform': 'tessie',
|
||||
@@ -198,7 +196,6 @@
|
||||
# name: test_covers[cover.test_trunk-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'door',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Trunk',
|
||||
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: True,
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 3>,
|
||||
|
||||
Reference in New Issue
Block a user