Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Apr 3, 2019
1 parent dd66739 commit 1647a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/myq/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def shutdown(_):
_LOGGER.debug("%s: Closing MyQ device", self.name)
await self._device.close_connection()

# Register callback with HA
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, shutdown)

@property
Expand Down

0 comments on commit 1647a02

Please sign in to comment.