Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pyhilo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pyhilo.devices import Devices
from pyhilo.event import Event
from pyhilo.exceptions import HiloError, InvalidCredentialsError, WebsocketError
from pyhilo.oauth2 import AuthCodeWithPKCEImplementation
from pyhilo.util import from_utc_timestamp, time_diff
from pyhilo.websocket import WebsocketEvent

Expand All @@ -18,7 +17,6 @@
"HiloError",
"InvalidCredentialsError",
"WebsocketError",
"AuthCodeWithPKCEImplementation",
"from_utc_timestamp",
"time_diff",
"WebsocketEvent",
Expand Down
4 changes: 2 additions & 2 deletions pyhilo/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def attributes_list(self) -> list[Union[int, dict[int, list[str]]]]:
]

def parse_values_received(self, values: list[dict[str, Any]]) -> list[HiloDevice]:
"""Places value received in a dict while removing null attributes,
"""Places value received in a dict while removing null attributes,
this returns values to be mapped to devices.
"""
readings = []
Expand Down Expand Up @@ -110,7 +110,7 @@ async def update(self) -> None:
async def update_devicelist_from_signalr(
self, values: list[dict[str, Any]]
) -> list[HiloDevice]:
#ic-dev21 not sure if this is dead code?
# ic-dev21 not sure if this is dead code?
new_devices = []
for raw_device in values:
LOG.debug(f"Generating device {raw_device}")
Expand Down
4 changes: 3 additions & 1 deletion pyhilo/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ async def subscribe_to_device_updated(
await asyncio.sleep(5)
try:
await self.call_get_location_query(location_hilo_id)
LOG.debug("subscribe_to_device_updated, call_get_location_query success")
LOG.debug(
"subscribe_to_device_updated, call_get_location_query success"
)

except Exception as e2:
LOG.error(
Expand Down
51 changes: 0 additions & 51 deletions pyhilo/oauth2.py

This file was deleted.

Loading