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

Stepuptech solar inverter: remove force from non-optional sensors

`force: true` only makes sense when `optional: true` is also needed. If it is always reported, then it does not need to be forced.
Jason Rumney 1 год назад
Родитель
Сommit
518113305f

+ 0 - 9
custom_components/tuya_local/devices/solar_inverter_stepuptech.yaml

@@ -12,7 +12,6 @@ primary_entity:
       name: sensor
       unit: kWh
       class: total_increasing
-      force: true
       mapping:
         - scale: 100
 secondary_entities:
@@ -26,7 +25,6 @@ secondary_entities:
         name: sensor
         unit: W
         class: measurement
-        force: true
         mapping:
           - scale: 100
   - entity: sensor
@@ -38,7 +36,6 @@ secondary_entities:
         type: integer
         name: sensor
         unit: V
-        force: true
         mapping:
           - scale: 100
   - entity: sensor
@@ -49,7 +46,6 @@ secondary_entities:
         name: sensor
         unit: C
         class: measurement
-        force: true
         mapping:
           - scale: 10
   - entity: sensor
@@ -61,7 +57,6 @@ secondary_entities:
         type: integer
         name: sensor
         unit: A
-        force: true
         mapping:
           - scale: 100
   - entity: switch
@@ -82,7 +77,6 @@ secondary_entities:
         name: sensor
         unit: W
         class: measurement
-        force: true
         mapping:
           - scale: 100
   - entity: number
@@ -105,7 +99,6 @@ secondary_entities:
         type: integer
         name: sensor
         unit: A
-        force: true
         mapping:
           - scale: 100
   - entity: sensor
@@ -118,7 +111,6 @@ secondary_entities:
         name: sensor
         unit: kWh
         class: total_increasing
-        force: true
         mapping:
           - scale: 100
   - entity: sensor
@@ -130,6 +122,5 @@ secondary_entities:
         type: integer
         name: sensor
         unit: V
-        force: true
         mapping:
           - scale: 100