fix: source of temperature property electric blanket is incorrect

- Use temperature of electric-blanket instead of environment
This commit is contained in:
lucka-me 2025-01-24 00:13:11 +08:00
parent 52d0214766
commit fa34b4fb1c
No known key found for this signature in database
GPG Key ID: 18D9594195346982

View File

@ -251,18 +251,10 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = {
}
},
'optional': {
'properties': {'target-temperature'}
'properties': {'target-temperature', 'temperature'}
},
}
},
'optional': {
'environment': {
'required': {},
'optional': {
'properties': {'temperature'}
}
},
},
'entity': 'heater'
}
}