mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add support for DS2401 (#154506)
This commit is contained in:
@@ -13,6 +13,7 @@ DEVICE_KEYS_A_B = ("A", "B")
|
||||
DEVICE_KEYS_A_D = ("A", "B", "C", "D")
|
||||
|
||||
DEVICE_SUPPORT = {
|
||||
"01": (),
|
||||
"05": (),
|
||||
"10": (),
|
||||
"12": (),
|
||||
|
||||
@@ -11,6 +11,11 @@ MOCK_OWPROXY_DEVICES = {
|
||||
"/type": [b""],
|
||||
},
|
||||
},
|
||||
"01.111111111111": {
|
||||
ATTR_INJECT_READS: {
|
||||
"/type": [b"DS2401"],
|
||||
},
|
||||
},
|
||||
"05.111111111111": {
|
||||
ATTR_INJECT_READS: {
|
||||
"/type": [b"DS2405"],
|
||||
|
||||
@@ -1,4 +1,35 @@
|
||||
# serializer version: 1
|
||||
# name: test_registry[01.111111111111-entry]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
'config_entries': <ANY>,
|
||||
'config_entries_subentries': <ANY>,
|
||||
'configuration_url': None,
|
||||
'connections': set({
|
||||
}),
|
||||
'disabled_by': None,
|
||||
'entry_type': None,
|
||||
'hw_version': None,
|
||||
'id': <ANY>,
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'onewire',
|
||||
'01.111111111111',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Maxim Integrated',
|
||||
'model': 'DS2401',
|
||||
'model_id': 'DS2401',
|
||||
'name': '01.111111111111',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': '111111111111',
|
||||
'sw_version': '3.2',
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_registry[05.111111111111-entry]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
|
||||
Reference in New Issue
Block a user