This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Tuya Single Phase Circuit Breaker with Current Leakage Detection and Electrical Measurement.""" | |
| import logging | |
| from zigpy.quirks.v2 import SensorDeviceClass, SensorStateClass, EntityPlatform, EntityType | |
| from zigpy.quirks.v2.homeassistant import ( | |
| UnitOfElectricCurrent, | |
| UnitOfElectricPotential, | |
| UnitOfEnergy, | |
| UnitOfPower, | |
| UnitOfTime, | |
| UnitOfTemperature, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """TS011F Circuit Breaker * Tongou TO-Q-SY2-JZT.""" | |
| """Supports HA 2027.07""" | |
| from typing import Any, Optional, Union | |
| import logging | |
| import enum | |
| from struct import (iter_unpack, pack) | |
| from zigpy.profiles import zgp, zha | |
| from zigpy.quirks.v2 import ( |