fix: Update specv2entity.py for missing "binary_sensor"

fix: Update specv2entity.py for missing "binary_sensor"

fix typo which forgets to  adding "binary_sensor" entity in `SPEC_PROP_TRANS_MAP`.
This commit is contained in:
Yi Zhai 2024-12-19 17:18:55 +08:00 committed by GitHub
parent 9cc2c52d44
commit 3546517093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,6 +337,10 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
'format': {'int', 'float'},
'access': {'read'}
},
'binary_sensor': {
'format': {'bool'},
'access': {'read'}
},
'switch': {
'format': {'bool'},
'access': {'read', 'write'}