Skip to content

Commit

Permalink
Address issue with Unknown error on setup
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Dec 28, 2024
1 parent a19e43f commit be16cd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/smart_maic/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(self, smart_maic: SmartMaic, hass: HomeAssistant) -> None:
name=DOMAIN,
)

self.set_update_interval()
if self.config_entry:
self.set_update_interval()

def set_update_interval(self):
"""Set update interval."""
Expand Down
2 changes: 2 additions & 0 deletions custom_components/smart_maic/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
DEVICE_NAME,
DEVICE_TYPE,
DOMAIN,
IP_ADDRESS,
)
from .coordinator import SmartMaicCoordinator

Expand Down Expand Up @@ -57,6 +58,7 @@ def device_info(self) -> DeviceInfo:
name=self._entry.data[DEVICE_NAME],
manufacturer="Smart MAIC",
model=self._entry.data[DEVICE_TYPE],
configuration_url=f"http://{self._entry.data[IP_ADDRESS]}",
)

@property
Expand Down

0 comments on commit be16cd0

Please sign in to comment.