Skip to content

Commit

Permalink
new update version
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-code-ruiz committed Jun 7, 2022
1 parent 0187af5 commit 2bfc4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions custom_components/elkbledom/elkbledom.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ def __init__(self, mac: str) -> None:
self._read_uuid = None

async def _write(self, data: bytearray):
if not self._device.is_connected:
await self.update()
LOGGER.debug(''.join(format(x, ' 03x') for x in data))
await self._device.write_gatt_char(self._write_uuid, data)

Expand Down
4 changes: 2 additions & 2 deletions custom_components/elkbledom/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ async def async_turn_off(self, **kwargs: Any) -> None:
await self._instance.turn_off()
self.async_write_ha_state()

# async def async_update(self) -> None:
# await self._instance.update()
async def async_update(self) -> None:
await self._instance.update()

0 comments on commit 2bfc4d3

Please sign in to comment.