Commit 551932b 1 parent d79da44 commit 551932b Copy full SHA for 551932b
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1232,6 +1232,7 @@ async def test_gas(
1232
1232
assert hass .states .get ("climate.my_living_room_room_temperature" ).attributes ["temperature" ] == 25
1233
1233
1234
1234
1235
+ @responses .activate
1235
1236
async def test_button (
1236
1237
hass : HomeAssistant ,
1237
1238
config_entry : MockConfigEntry ,
@@ -1246,13 +1247,15 @@ async def test_button(
1246
1247
"custom_components.daikin_onecta.DaikinApi.async_get_access_token" ,
1247
1248
return_value = "XXXXXX" ,
1248
1249
):
1250
+ responses .get (DAIKIN_API_URL + "/v1/gateway-devices" , status = 200 , json = load_fixture_json ("dry" ))
1251
+
1249
1252
# Call button service
1250
1253
await hass .services .async_call (
1251
1254
BUTTON_DOMAIN ,
1252
1255
SERVICE_PRESS ,
1253
- {ATTR_ENTITY_ID : "button.altherma_refresh " },
1256
+ {ATTR_ENTITY_ID : "button.lounge_refresh " },
1254
1257
blocking = True ,
1255
1258
)
1256
1259
await hass .async_block_till_done ()
1257
1260
1258
- assert len (responses .calls ) == 0
1261
+ assert len (responses .calls ) == 1
You can’t perform that action at this time.
0 commit comments