File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -78,22 +78,6 @@ async def test_setup(
7878 await hass .config_entries .async_reload (label_state_config_entry .entry_id )
7979 await hass .async_block_till_done ()
8080
81- # # Confirm the link between the source entity device and the periodicminmax sensor
82- label_state_entity = entity_registry .async_get ("sensor.my_label_state" )
83- assert label_state_entity is not None
84-
85- # After reloading the config entry, check linked device
86- devices_after_reload = device_registry .devices .get_devices_for_config_entry_id (
87- label_state_config_entry .entry_id
88- )
89- assert len (devices_after_reload ) == 1
90-
91- assert devices_after_reload [0 ].id == source_device_entry .id
92-
9381 # Remove the config entry
9482 assert await hass .config_entries .async_remove (label_state_config_entry .entry_id )
9583 await hass .async_block_till_done ()
96-
97- # Check the state and entity registry entry are removed
98- assert hass .states .get (label_state_entity .entity_id ) is None
99- assert entity_registry .async_get (label_state_entity .entity_id ) is None
You can’t perform that action at this time.
0 commit comments