Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from ryanwinter/patch
Browse files Browse the repository at this point in the history
remove deprecated function
  • Loading branch information
ryanwinter authored Feb 25, 2023
2 parents a4bf16f + 903b286 commit 600fc50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/rainforest_emu_2/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_shutdown(event):

hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, async_shutdown)
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = emu2device
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

return True

Expand Down
4 changes: 2 additions & 2 deletions custom_components/rainforest_emu_2/config_flow.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def async_get_device_properties(self, device_path, host, port) -> dict[str

await emu2.get_device_info()

await asyncio.sleep(2)
await asyncio.sleep(3)
serial_loop_task.cancel()

try:
Expand All @@ -157,7 +157,7 @@ async def async_get_device_properties(self, device_path, host, port) -> dict[str
}
_LOGGER.debug("get_devices_properties DeviceInfo response is None")

# For some reason we didnt get a DeviceInfo response, failback to an InstananeousDemand response
# For some reason we didnt get a DeviceInfo response, fallback to InstantaneousDemand response
response = emu2.get_data(InstantaneousDemand)
if response is not None:
return {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/rainforest_emu_2/manifest.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pyserial-asyncio==0.6"
],
"iot_class": "local_polling",
"version": "1.3.0",
"version": "1.3.1",
"config_flow": true,
"usb": [
{
Expand Down

0 comments on commit 600fc50

Please sign in to comment.