Skip to content

Commit

Permalink
Fix device source for Threshold (#95623)
Browse files Browse the repository at this point in the history
Fix Device Source
  • Loading branch information
dougiteixeira authored Jun 30, 2023
1 parent 0431e03 commit c472ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/threshold/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ async def async_setup_entry(
):
device_info = DeviceInfo(
identifiers=device.identifiers,
connections=device.connections,
)
else:
device_info = None
Expand Down
1 change: 1 addition & 0 deletions tests/components/threshold/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ async def test_device_id(hass: HomeAssistant) -> None:
source_device_entry = device_registry.async_get_or_create(
config_entry_id=source_config_entry.entry_id,
identifiers={("sensor", "identifier_test")},
connections={("mac", "30:31:32:33:34:35")},
)
source_entity = entity_registry.async_get_or_create(
"sensor",
Expand Down

0 comments on commit c472ead

Please sign in to comment.