Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr committed Jan 14, 2020
1 parent 528b09c commit 04eb5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/bhyve/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ async def async_update(self):
self._ws_unprocessed_events[:] = [] # We don't care about these

try:
self._device = await self._bhyve.get_device(self._device_id)
device = await self._bhyve.get_device(self._device_id)
if not device:
_LOGGER.info("No device found with id %s", self._device_id)
self._available = False
return

self._setup(self._device)
self._setup(device)

except BHyveError as err:
_LOGGER.warning("Failed to connect to BHyve servers. %s", err)
Expand Down

0 comments on commit 04eb5a6

Please sign in to comment.