ZHA component rewrite (#20434)
* rebase reorg * update coveragerc for now * sensor cleanup * remove availability tracking for entities * finish removing changes from tests * review comments pass 1 * use asyncio.gather - review comments * review comments * cleanup - review comments * review comments * review comments * cleanup * cleanup - review comments * review comments * review comments * use signal for removal * correct comment * remove entities from gateway * remove dead module * remove accidently committed file * use named tuple - review comments * squash bugs * squash bugs * add light and sensor back to coveragerc until % is higher
This commit is contained in:
parent
65a225da75
commit
e6cd04d711
22 changed files with 1774 additions and 1591 deletions
|
@ -55,10 +55,38 @@ IEEE = 'ieee'
|
|||
MODEL = 'model'
|
||||
NAME = 'name'
|
||||
|
||||
SENSOR_TYPE = 'sensor_type'
|
||||
HUMIDITY = 'humidity'
|
||||
TEMPERATURE = 'temperature'
|
||||
ILLUMINANCE = 'illuminance'
|
||||
PRESSURE = 'pressure'
|
||||
METERING = 'metering'
|
||||
ELECTRICAL_MEASUREMENT = 'electrical_measurement'
|
||||
POWER_CONFIGURATION = 'power_configuration'
|
||||
GENERIC = 'generic'
|
||||
UNKNOWN = 'unknown'
|
||||
OPENING = 'opening'
|
||||
ZONE = 'zone'
|
||||
OCCUPANCY = 'occupancy'
|
||||
|
||||
ATTR_LEVEL = 'level'
|
||||
|
||||
LISTENER_ON_OFF = 'on_off'
|
||||
LISTENER_ATTRIBUTE = 'attribute'
|
||||
LISTENER_COLOR = 'color'
|
||||
LISTENER_FAN = 'fan'
|
||||
LISTENER_LEVEL = ATTR_LEVEL
|
||||
LISTENER_ZONE = 'zone'
|
||||
LISTENER_ACTIVE_POWER = 'active_power'
|
||||
LISTENER_BATTERY = 'battery'
|
||||
LISTENER_EVENT_RELAY = 'event_relay'
|
||||
|
||||
SIGNAL_ATTR_UPDATED = 'attribute_updated'
|
||||
SIGNAL_MOVE_LEVEL = "move_level"
|
||||
SIGNAL_SET_LEVEL = "set_level"
|
||||
SIGNAL_STATE_ATTR = "update_state_attribute"
|
||||
SIGNAL_AVAILABLE = 'available'
|
||||
SIGNAL_REMOVE = 'remove'
|
||||
|
||||
|
||||
class RadioType(enum.Enum):
|
||||
|
@ -78,9 +106,10 @@ DISCOVERY_KEY = 'zha_discovery_info'
|
|||
DEVICE_CLASS = {}
|
||||
SINGLE_INPUT_CLUSTER_DEVICE_CLASS = {}
|
||||
SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS = {}
|
||||
CLUSTER_REPORT_CONFIGS = {}
|
||||
CUSTOM_CLUSTER_MAPPINGS = {}
|
||||
COMPONENT_CLUSTERS = {}
|
||||
EVENTABLE_CLUSTERS = []
|
||||
EVENT_RELAY_CLUSTERS = []
|
||||
|
||||
REPORT_CONFIG_MAX_INT = 900
|
||||
REPORT_CONFIG_MAX_INT_BATTERY_SAVE = 10800
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue