1
0
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:
epenet
2025-10-15 08:47:28 +02:00
committed by GitHub
parent d91eccb209
commit 9422703288
3 changed files with 37 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ DEVICE_KEYS_A_B = ("A", "B")
DEVICE_KEYS_A_D = ("A", "B", "C", "D")
DEVICE_SUPPORT = {
"01": (),
"05": (),
"10": (),
"12": (),

View File

@@ -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"],

View File

@@ -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,