mirror of
https://github.com/home-assistant/core.git
synced 2025-08-30 01:42:21 +02:00
Add model_id for Freebox integration (#150430)
This commit is contained in:
@@ -115,6 +115,7 @@ class FreeboxRouter:
|
||||
|
||||
self._api: Freepybox = api
|
||||
self.name: str = freebox_config["model_info"]["pretty_name"]
|
||||
self.model_id: str = freebox_config["model_info"]["name"]
|
||||
self.mac: str = freebox_config["mac"]
|
||||
self._sw_v: str = freebox_config["firmware_version"]
|
||||
self._hw_v: str | None = freebox_config.get("board_name")
|
||||
@@ -284,6 +285,7 @@ class FreeboxRouter:
|
||||
manufacturer="Freebox SAS",
|
||||
name=self.name,
|
||||
model=self.name,
|
||||
model_id=self.model_id,
|
||||
sw_version=self._sw_v,
|
||||
hw_version=self._hw_v,
|
||||
)
|
||||
|
Reference in New Issue
Block a user