Skip to content

Commit

Permalink
Correct identifiers for device association
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrherms committed Apr 30, 2024
1 parent c36531d commit 21d0e5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/idrac_power/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/idrac_power/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/idrac_power/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
serial = info[JSON_SERIAL_NUMBER]

device_info = DeviceInfo(
identifiers={('serial', serial)},
identifiers={(DOMAIN, serial)},
name=name,
manufacturer=manufacturer,
model=model,
Expand Down

0 comments on commit 21d0e5f

Please sign in to comment.