Skip to content
Open
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
11 changes: 6 additions & 5 deletions custom_components/vivohomebridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
hass.config_entries.async_update_entry(config_entry, data=_entry_data)

VLog.info(_TAG, f"[async_unload_entry]{config_entry.data}")
DeviceManager.instance().instance().get_local_server().config_flag(2)
await DeviceManager.instance().instance().get_local_server().sync_update_txt()
await DeviceManager.instance().instance().get_local_server().sync_stop()
await DeviceManager.instance().instance().get_vhome().network_shakehand_task_stop()
await DeviceManager.instance().uninstall()
dm = DeviceManager.instance()
dm.get_local_server().config_flag(2)
await dm.get_local_server().sync_update_txt()
await dm.get_local_server().sync_stop()
await dm.get_vhome().network_shakehand_task_stop()
await dm.uninstall()
return True
2 changes: 1 addition & 1 deletion custom_components/vivohomebridge/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def async_step_user(
) -> ConfigFlowResult:
self.hass.data.setdefault(DOMAIN, {})
errors: dict[str, str] = {}
description_placeholders: {} = {}
description_placeholders: dict[str, Any] = {}
if user_input is not None:
if user_input.get("important_notes", None) is True:
self._bridge_mac = f"{await async_get(self.hass)}{int(time.time())}"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/vivohomebridge/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ async def _handle_bcode_async(data):
bind_code: str = None
_delay_time: int = 300
errors: dict[str, str] = {}
description_placeholders: {} = {}
description_placeholders: dict[str, Any] = {}
mac: str = self.get_bridge_device().mac

bcode_dict_result = await self._vhome.async_get_bcode(mac)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/vivohomebridge/py_vhome/vhome.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def detect_platform() -> Tuple[str, str, Optional[str]]:
libc = detect_libc()
return ("linux", arch, libc)
else:
return (sysplat, arch, libc)
return (sysplat, arch, None)

def build_library_filename(base: str, os_name: str, arch: str, libc: Optional[str], libVersion: str) -> str:
if os_name == "windows":
Expand Down