@@ -100,21 +100,21 @@ async def test_state_sensor(
100100 "expected_state" ,
101101 ),
102102 [
103- ("11" , "12" , "10" , "20" , "off" ),
104- ("1" , "12" , "10" , "20" , "on" ),
103+ ("11" , "12" , 10 , 20 , "off" ),
104+ ("1" , "12" , 10 , 20 , "on" ),
105105 ],
106106)
107107async def test_numeric_state_sensor (
108108 hass : HomeAssistant ,
109109 state_1 : str ,
110110 state_2 : str ,
111- state_lower_limit : str ,
112- state_upper_limit : str ,
111+ state_lower_limit : float ,
112+ state_upper_limit : float ,
113113 expected_state : str ,
114114 entity_registry : er .EntityRegistry ,
115115 label_registry : lr .LabelRegistry ,
116116) -> None :
117- """Test the state sensor."""
117+ """Test the numeric state sensor."""
118118
119119 test_label = label_registry .async_create (
120120 "test" ,
@@ -146,9 +146,9 @@ async def test_numeric_state_sensor(
146146 title = "test_numeric_state" ,
147147 )
148148
149- config .add_to_hass (hass )
150- # await setup_integration(hass, config)
151- assert await hass .config_entries .async_setup (config .entry_id )
149+ # config.add_to_hass(hass)
150+ await setup_integration (hass , config )
151+ # assert await hass.config_entries.async_setup(config.entry_id)
152152 await hass .async_block_till_done ()
153153
154154 hass .states .async_set (sensor1_entity_entry .entity_id , state_1 )
0 commit comments