mirror of
https://github.com/home-assistant/core.git
synced 2025-08-30 09:51:37 +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._api: Freepybox = api
|
||||||
self.name: str = freebox_config["model_info"]["pretty_name"]
|
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.mac: str = freebox_config["mac"]
|
||||||
self._sw_v: str = freebox_config["firmware_version"]
|
self._sw_v: str = freebox_config["firmware_version"]
|
||||||
self._hw_v: str | None = freebox_config.get("board_name")
|
self._hw_v: str | None = freebox_config.get("board_name")
|
||||||
@@ -284,6 +285,7 @@ class FreeboxRouter:
|
|||||||
manufacturer="Freebox SAS",
|
manufacturer="Freebox SAS",
|
||||||
name=self.name,
|
name=self.name,
|
||||||
model=self.name,
|
model=self.name,
|
||||||
|
model_id=self.model_id,
|
||||||
sw_version=self._sw_v,
|
sw_version=self._sw_v,
|
||||||
hw_version=self._hw_v,
|
hw_version=self._hw_v,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user