Skip to content

Commit

Permalink
Update ts011f_plug.py (#1107)
Browse files Browse the repository at this point in the history
* Update ts011f_plug.py

Changed Cluster Attributes
```    
AC_VOLTAGE_MULTIPLIER = 0x0602
 AC_VOLTAGE_DIVISOR = 0x0603
```

* Update ts011f_plug.py

Removed the Custom Cluster for Electrical Measurement to fix AC_Voltage

* Update ts011f_plug.py

Fix for Current

* Update ts011f_plug.py

fixed naming

* Update ts011f_plug.py

fix black
  • Loading branch information
miit86 committed Oct 28, 2021
1 parent f64b26d commit fed86dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zhaquirks/tuya/ts011f_plug.py
Expand Up @@ -45,9 +45,9 @@ class TuyaClusterE001(CustomCluster):
class TuyaZBElectricalMeasurement(CustomCluster, ElectricalMeasurement):
"""Divides the Current for tuya."""

AC_VOLTAGE_MULTIPLIER = 0x0600
AC_VOLTAGE_DIVISOR = 0x0601
_CONSTANT_ATTRIBUTES = {AC_VOLTAGE_MULTIPLIER: 1, AC_VOLTAGE_DIVISOR: 1000}
AC_CURRENT_MULTIPLIER = 0x0602
AC_CURRENT_DIVISOR = 0x0603
_CONSTANT_ATTRIBUTES = {AC_CURRENT_MULTIPLIER: 1, AC_CURRENT_DIVISOR: 1000}


class Plug(CustomDevice):
Expand Down

0 comments on commit fed86dd

Please sign in to comment.