Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame committed Jan 5, 2020
1 parent bd8ab90 commit 02c5990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/freebox/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, fbx: Freepybox, fbx_conf: Dict):
self._fbx_sw_v = fbx_conf["firmware_version"]
self._state = None
self._datas = None
self._unique_id = f"{self._fbx._access.base_url} {self._name}"
self._unique_id = f"{self._fbx_mac} {self._name}"

@property
def unique_id(self) -> str:
Expand Down Expand Up @@ -75,7 +75,7 @@ def device_info(self) -> Dict[str, any]:
"""Return the device information."""
return {
"connections": {(CONNECTION_NETWORK_MAC, self._fbx_mac)},
"identifiers": {(DOMAIN, self._fbx._access.base_url)},
"identifiers": {(DOMAIN, self._fbx_mac)},
"name": self._fbx_name,
"manufacturer": "Freebox SAS",
"sw_version": self._fbx_sw_v,
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/freebox/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, fbx: Freepybox, fbx_conf: Dict):
self._fbx_mac = fbx_conf["mac"]
self._fbx_name = fbx_conf["model_info"]["pretty_name"]
self._fbx_sw_v = fbx_conf["firmware_version"]
self._unique_id = f"{self._fbx._access.base_url} {self._name}"
self._unique_id = f"{self._fbx_mac} {self._name}"

@property
def unique_id(self) -> str:
Expand All @@ -62,7 +62,7 @@ def device_info(self) -> Dict[str, any]:
"""Return the device information."""
return {
"connections": {(CONNECTION_NETWORK_MAC, self._fbx_mac)},
"identifiers": {(DOMAIN, self._fbx._access.base_url)},
"identifiers": {(DOMAIN, self._fbx_mac)},
"name": self._fbx_name,
"manufacturer": "Freebox SAS",
"sw_version": self._fbx_sw_v,
Expand Down

0 comments on commit 02c5990

Please sign in to comment.