ZHA - Event foundation (#19095)
* event foundation * add missing periods to comments * reworked so that entities don't fire events * lint * review comments
This commit is contained in:
parent
59581786d3
commit
f4f42176bd
5 changed files with 121 additions and 1 deletions
|
@ -103,3 +103,8 @@ class ZhaEntity(entity.Entity):
|
|||
'name': self._device_state_attributes['friendly_name'],
|
||||
'via_hub': (DOMAIN, self.hass.data[DATA_ZHA][DATA_ZHA_BRIDGE_ID]),
|
||||
}
|
||||
|
||||
@callback
|
||||
def zha_send_event(self, cluster, command, args):
|
||||
"""Relay entity events to hass."""
|
||||
pass # don't relay events from entities
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue