File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
tests/components/plugwise Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,28 @@ async def test_gateway_config_entry_not_ready(
113113 assert mock_config_entry .state is entry_state
114114
115115
116+ async def test_device_in_dr (
117+ hass : HomeAssistant ,
118+ mock_config_entry : MockConfigEntry ,
119+ mock_smile_p1 : MagicMock ,
120+ device_registry : dr .DeviceRegistry ,
121+ ) -> None :
122+ """Test Gateway device registry data."""
123+ mock_config_entry .add_to_hass (hass )
124+ assert await async_setup_component (hass , DOMAIN , {})
125+ await hass .async_block_till_done ()
126+
127+ device_entry = device_registry .async_get_device (
128+ identifiers = {(DOMAIN , "a455b61e52394b2db5081ce025a430f3" )}
129+ )
130+ assert device_entry .hw_version == "AME Smile 2.0 board"
131+ assert device_entry .manufacturer == "Plugwise"
132+ assert device_entry .model == "Gateway"
133+ assert device_entry .model_id == "smile"
134+ assert device_entry .name == "Smile P1"
135+ assert device_entry .sw_version == "4.4.2"
136+
137+
116138async def check_migration (
117139 hass : HomeAssistant ,
118140 mock_config_entry : MockConfigEntry ,
You can’t perform that action at this time.
0 commit comments