@@ -759,16 +759,16 @@ def localtuya_sensor(unit_of_measurement=None, scale_factor: float = 1) -> dict:
759
759
LocalTuyaEntity (
760
760
id = DPCode .ELECTRICITY_PHASE_A ,
761
761
name = "Electricity Phase A" ,
762
- device_class = SensorDeviceClass .VOLTAGE ,
762
+ device_class = SensorDeviceClass .CURRENT ,
763
763
state_class = SensorStateClass .MEASUREMENT ,
764
- custom_configs = localtuya_sensor (UnitOfElectricPotential . VOLT , 0.01 ),
764
+ custom_configs = localtuya_sensor (UnitOfElectricCurrent . AMPERE , 0.01 ),
765
765
),
766
766
LocalTuyaEntity (
767
767
id = DPCode .ELECTRICITY_PHASE_B ,
768
768
name = "Electricity Phase B" ,
769
- device_class = SensorDeviceClass .VOLTAGE ,
769
+ device_class = SensorDeviceClass .CURRENT ,
770
770
state_class = SensorStateClass .MEASUREMENT ,
771
- custom_configs = localtuya_sensor (UnitOfElectricPotential . VOLT , 0.01 ),
771
+ custom_configs = localtuya_sensor (UnitOfElectricCurrent . AMPERE , 0.01 ),
772
772
),
773
773
LocalTuyaEntity (
774
774
id = DPCode .ELECTRICITY_PHASE_C ,
@@ -808,11 +808,6 @@ def localtuya_sensor(unit_of_measurement=None, scale_factor: float = 1) -> dict:
808
808
name = "Version" ,
809
809
entity_category = EntityCategory .DIAGNOSTIC ,
810
810
),
811
- LocalTuyaEntity (
812
- id = DPCode .NETWORK_MODEL ,
813
- name = "Network" ,
814
- entity_category = EntityCategory .DIAGNOSTIC ,
815
- ),
816
811
),
817
812
# Gas Detector
818
813
# https://developer.tuya.com/en/docs/iot/categoryrqbj?id=Kaiuz3d162ubw
0 commit comments