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

Kanchou pet fountain: remove power switch and volume state class

- power switch is non-functional, so removed.
- HA expects volume sensors to be total/total_increasing or no state class.
  Since this is probably a daily measurement, total_increasing would be wrong,
  and we do not have a reset_time dp to allow use of total.

Issue #2836
Jason Rumney 1 год назад
Родитель
Сommit
35f5dbe344
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      custom_components/tuya_local/devices/kanchou_petfountain.yaml

+ 0 - 8
custom_components/tuya_local/devices/kanchou_petfountain.yaml

@@ -3,13 +3,6 @@ products:
   - id: akln8rb04cav403q
     manufacturer: Kanchou
 entities:
-  - entity: switch
-    icon: "mdi:paw"
-    dps:
-      - id: 1
-        type: boolean
-        optional: true
-        name: switch
   - entity: select
     name: Mode
     icon: "mdi:paw"
@@ -121,7 +114,6 @@ entities:
         type: integer
         name: sensor
         unit: mL
-        class: measurement
   - entity: binary_sensor
     class: problem
     category: diagnostic