Skip to content

Commit

Permalink
some changes for issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-code-ruiz committed May 5, 2023
1 parent 95f7223 commit de37de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/elkbledom/elkbledom.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,5 +405,6 @@ async def _execute_disconnect(self) -> None:
self._write_uuid = None
self._read_uuid = None
if client and client.is_connected:
await client.stop_notify(read_char)
if not self._device.name.lower().startswith("melk"):
await client.stop_notify(read_char)
await client.disconnect()

0 comments on commit de37de1

Please sign in to comment.