Просмотр исходного кода

Update casdon_kg1_waterdispenser.yaml

fix Entity sensor.inline_water_dispenser_ti_ji (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using state class 'measurement' which is impossible considering device class ('volume') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/make-all/tuya-local/issues

Entity sensor.inline_water_dispenser_ti_ji (<class 'custom_components.tuya_local.sensor.TuyaLocalSensor'>) is using native unit of measurement 'ml' which is not a valid unit for the device class ('volume') it is using; expected one of ['mL', 'MCF', 'ft³', 'CCF', 'L', 'gal', 'm³', 'fl. oz.']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/make-all/tuya-local/issues
Gavin 1 месяц назад
Родитель
Сommit
638824aa0e

+ 1 - 2
custom_components/tuya_local/devices/casdon_kg1_waterdispenser.yaml

@@ -131,12 +131,11 @@ entities:
 
   - entity: sensor
     category: diagnostic
-    class: volume
     dps:
       - id: 26
         type: integer
         name: sensor
-        unit: ml
+        unit: mL
         class: measurement
 
   - entity: binary_sensor