Browser state sensors and Visit device for FKB

This commit is contained in:
2022-07-14 23:06:04 +00:00
parent 1109980d61
commit a46d2b3cb0
8 changed files with 126 additions and 79 deletions

View File

@@ -22,10 +22,14 @@ class BrowserModEntity(CoordinatorEntity):
@property
def device_info(self):
config_url = {}
if ip := self._data.get("browser", {}).get("ip_address"):
config_url = {"configuration_url": f"http://{ip}:2323"}
return {
"identifiers": {(DOMAIN, self.deviceID)},
"name": self.deviceID,
"manufacturer": "Browser Mod",
**config_url,
}
@property