Skip to content

Commit 7e28e3d

Browse files
authored
Add sw_version to JustNimbus device (home-assistant#150592)
1 parent bb3d571 commit 7e28e3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

homeassistant/components/justnimbus/entity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(
2828
identifiers={(DOMAIN, device_id)},
2929
name="JustNimbus Sensor",
3030
manufacturer="JustNimbus",
31+
sw_version=coordinator.data.api_version,
3132
)
3233

3334
@property

tests/components/justnimbus/test_config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def test_reauth_flow(hass: HomeAssistant) -> None:
132132

133133
with patch(
134134
"homeassistant.components.justnimbus.config_flow.justnimbus.JustNimbusClient.get_data",
135-
return_value=MagicMock(),
135+
return_value=MagicMock(api_version="1.0.0"),
136136
):
137137
result2 = await hass.config_entries.flow.async_configure(
138138
result["flow_id"],

0 commit comments

Comments
 (0)