mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Add door state sensors to tedee (#147386)
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
"is_charging": false,
|
||||
"state_change_result": 0,
|
||||
"is_enabled_pullspring": 1,
|
||||
"duration_pullspring": 2
|
||||
"duration_pullspring": 2,
|
||||
"door_state": 0
|
||||
},
|
||||
{
|
||||
"lock_name": "Lock-2C3D",
|
||||
@@ -21,6 +22,7 @@
|
||||
"is_charging": false,
|
||||
"state_change_result": 0,
|
||||
"is_enabled_pullspring": 0,
|
||||
"duration_pullspring": 0
|
||||
"duration_pullspring": 0,
|
||||
"door_state": 2
|
||||
}
|
||||
]
|
||||
|
@@ -242,6 +242,55 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_binary_sensors[binary_sensor.lock_2c3d_door-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': None,
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'binary_sensor',
|
||||
'entity_category': None,
|
||||
'entity_id': 'binary_sensor.lock_2c3d_door',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <BinarySensorDeviceClass.DOOR: 'door'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Door',
|
||||
'platform': 'tedee',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': '98765-door_state',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_binary_sensors[binary_sensor.lock_2c3d_door-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'door',
|
||||
'friendly_name': 'Lock-2C3D Door',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.lock_2c3d_door',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'on',
|
||||
})
|
||||
# ---
|
||||
# name: test_binary_sensors[binary_sensor.lock_2c3d_lock_uncalibrated-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
@@ -17,7 +17,7 @@
|
||||
}),
|
||||
'1': dict({
|
||||
'battery_level': 70,
|
||||
'door_state': 0,
|
||||
'door_state': 2,
|
||||
'duration_pullspring': 0,
|
||||
'is_charging': False,
|
||||
'is_connected': True,
|
||||
|
Reference in New Issue
Block a user