added more fields
This commit is contained in:
1 parent
12cd2719d2
commit
cc7891ed6a
5 files changed
+57
-13
No files matched your search
@@ -1,6 +1,28 @@
|
||||
"""Constants for the Bluetti BT integration."""
|
||||
|
||||
from bluetti_mqtt.mqtt_client import MqttFieldConfig, MqttFieldType
|
||||
|
||||
DOMAIN = "bluetti_bt"
|
||||
MANUFACTURER = "Bluetti"
|
||||
|
||||
CONF_OPTIONS = "options"
|
||||
|
||||
DIAGNOSTIC_FIELDS = [
|
||||
"bcu_version",
|
||||
"safety_module_version",
|
||||
]
|
||||
|
||||
ADDITIONAL_DEVICE_FIELDS = {
|
||||
"bcu_version": MqttFieldConfig(
|
||||
type=MqttFieldType.NUMERIC,
|
||||
setter=False,
|
||||
advanced=False,
|
||||
home_assistant_extra={"name": "BCU Version"},
|
||||
),
|
||||
"safety_module_version": MqttFieldConfig(
|
||||
type=MqttFieldType.NUMERIC,
|
||||
setter=False,
|
||||
advanced=False,
|
||||
home_assistant_extra={"name": "Safety Module Version"},
|
||||
),
|
||||
}
|
||||
Reference in new issue
Block a user