diff --git a/homeassistant/components/onewire/switch.py b/homeassistant/components/onewire/switch.py index ed7b0df73a101..228c8f9d78bf3 100644 --- a/homeassistant/components/onewire/switch.py +++ b/homeassistant/components/onewire/switch.py @@ -19,6 +19,14 @@ DEVICE_SWITCHES: dict[str, list[DeviceComponentDescription]] = { # Family : { owfs path } + "05": [ + { + "path": "PIO", + "name": "PIO", + "type": SWITCH_TYPE_PIO, + "default_disabled": True, + }, + ], "12": [ { "path": "PIO.A", diff --git a/tests/components/onewire/const.py b/tests/components/onewire/const.py index 57d54e0dcc3a0..1eb2b4b390aa1 100644 --- a/tests/components/onewire/const.py +++ b/tests/components/onewire/const.py @@ -31,6 +31,28 @@ ], SENSOR_DOMAIN: [], }, + "05.111111111111": { + "inject_reads": [ + b"DS2405", # read device type + ], + "device_info": { + "identifiers": {(DOMAIN, "05.111111111111")}, + "manufacturer": "Maxim Integrated", + "model": "DS2405", + "name": "05.111111111111", + }, + SWITCH_DOMAIN: [ + { + "entity_id": "switch.05_111111111111_pio", + "unique_id": "/05.111111111111/PIO", + "injected_value": b" 1", + "result": STATE_ON, + "unit": None, + "class": None, + "disabled": True, + }, + ], + }, "10.111111111111": { "inject_reads": [ b"DS18S20", # read device type