mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 18:41:44 +02:00
Added a test
This commit is contained in:
@@ -775,6 +775,36 @@ MOCK_OWPROXY_DEVICES = {
|
||||
},
|
||||
],
|
||||
},
|
||||
"7E.222222222222": {
|
||||
"inject_reads": [
|
||||
b"EDS", # read type
|
||||
b"EDS0066", # read device_type - note EDS specific
|
||||
],
|
||||
"device_info": {
|
||||
"identifiers": {(DOMAIN, "7E.222222222222")},
|
||||
"manufacturer": "Maxim Integrated",
|
||||
"model": "EDS",
|
||||
"name": "7E.222222222222",
|
||||
},
|
||||
SENSOR_DOMAIN: [
|
||||
{
|
||||
"entity_id": "sensor.222222222222",
|
||||
"unique_id": "/7E.222222222222/EDS0066/temperature",
|
||||
"injected_value": b" 13.9375",
|
||||
"result": "13.9",
|
||||
"unit": TEMP_CELSIUS,
|
||||
"class": DEVICE_CLASS_TEMPERATURE,
|
||||
},
|
||||
{
|
||||
"entity_id": "sensor.222222222222",
|
||||
"unique_id": "/7E.222222222222/EDS0066/pressure",
|
||||
"injected_value": b" 1012.21",
|
||||
"result": "1012.2",
|
||||
"unit": PRESSURE_MBAR,
|
||||
"class": DEVICE_CLASS_PRESSURE,
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
MOCK_SYSBUS_DEVICES = {
|
||||
|
Reference in New Issue
Block a user