Skip to content

Commit

Permalink
Fix device identifiers in charger_entity.py and switch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
magico13 committed Mar 3, 2024
1 parent 7bd17af commit c90ad71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/emporia_vue/charger_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def unique_id(self) -> str:
def device_info(self) -> DeviceInfo:
"""Return the device information."""
return DeviceInfo(
identifiers={(DOMAIN, self._device.device_gid)},
identifiers={(DOMAIN, f"{self._device.device_gid}-1,2,3")},
name=self._device.device_name,
model=self._device.model,
sw_version=self._device.firmware,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/emporia_vue/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def async_turn_off(self, **kwargs: Any) -> None:
def device_info(self) -> DeviceInfo:
"""Return the device information."""
return DeviceInfo(
identifiers={(DOMAIN, str(self._device_gid))},
identifiers={(DOMAIN, f"{self._device_gid}-1,2,3")},
name=self._device.device_name,
model=self._device.model,
sw_version=self._device.firmware,
Expand Down

0 comments on commit c90ad71

Please sign in to comment.