fixed typos
This commit is contained in:
@@ -15,11 +15,10 @@ class Door:
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.adapi.listen_state(
|
self.adapi.listen_state(
|
||||||
callback=lambda *args, **kwargs: self.call_service(
|
callback=lambda *args, **kwargs: self.adapi.call_service(
|
||||||
f'{self.adapi.name}/activate_all_off', namespace='controller'
|
f'{self.adapi.name}/activate_all_off', namespace='controller', cause='door open'
|
||||||
),
|
),
|
||||||
entity_id=self.entity_id,
|
entity_id=self.entity_id,
|
||||||
new='on',
|
new='on',
|
||||||
cause='door open',
|
|
||||||
)
|
)
|
||||||
self.logger.debug(f'Initialized door for [room]{self.adapi.name}[/]')
|
self.logger.debug(f'Initialized door for [room]{self.adapi.name}[/]')
|
||||||
|
|||||||
Reference in New Issue
Block a user