Axis change how new event is signalled (#23152)

This commit is contained in:
Robert Svensson authored and GitHub committed 2019-04-17 15:21:42 +02:00
1 parent e114ae9b53
commit 0b7e62f737
6 files changed
+10 -9

No files matched your search

+2 -2
View File
@@ -140,10 +140,10 @@ class AxisNetworkDevice:
return 'axis_add_sensor_{}'.format(self.serial)
@callback
def async_event_callback(self, action, event):
def async_event_callback(self, action, event_id):
"""Call to configure events when initialized on event stream."""
if action == 'add':
async_dispatcher_send(self.hass, self.event_new_sensor, event)
async_dispatcher_send(self.hass, self.event_new_sensor, event_id)
@callback
def start(self, fut):