Skip to content

Commit

Permalink
Fix convention according to flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
94929 committed Feb 16, 2022
1 parent f96c329 commit 4ed15e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions modi/modi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class MODI:
network_uuids = {}

def __call__(cls, *args, **kwargs):
#if cls not in cls.instances:
# cls.instances[cls] = super(MODI, cls).__call__(*args, **kwargs)
#return cls.instances[cls]
network_uuid = kwargs.get('network_uuid')
conn_type = kwargs.get('conn_type')
if conn_type != 'ble':
Expand Down
6 changes: 2 additions & 4 deletions modi/task/ble_task/ble_task_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, verbose=False, uuid=None):
mac_client.BleakClientCoreBluetooth.get_services
mac_client.BleakClientCoreBluetooth.get_services = \
self.mac_get_service

@staticmethod
async def mac_get_service(client):
return None
Expand Down Expand Up @@ -114,11 +114,9 @@ def close_conn(self):
time.sleep(0.1)
self._loop.run_until_complete(self.__close_client())
self._loop.close()

def handle_disconnected(self, _):
print('Device is being properly disconnected...')
#for task in aio.all_tasks():
# task.cancel()

def recv(self) -> Optional[str]:
if self._recv_q.empty():
Expand Down

0 comments on commit 4ed15e8

Please sign in to comment.