1717import jsonpickle as json
1818import pytest
1919
20- pw_exceptions = importlib .import_module (' plugwise.exceptions' )
21- pw_smile = importlib .import_module (' plugwise.smile' )
20+ pw_exceptions = importlib .import_module (" plugwise.exceptions" )
21+ pw_smile = importlib .import_module (" plugwise.smile" )
2222
2323pp = PrettyPrinter (indent = 8 )
2424
@@ -341,7 +341,10 @@ async def tinker_relay(self, smile, dev_ids=None, members=None, unhappy=False):
341341 )
342342 assert relay_change
343343 _LOGGER .info (" + worked as intended" )
344- except (pw_exceptions .ErrorSendingCommandError , pw_exceptions .ResponseError ):
344+ except (
345+ pw_exceptions .ErrorSendingCommandError ,
346+ pw_exceptions .ResponseError ,
347+ ):
345348 if unhappy :
346349 _LOGGER .info (" + failed as expected" )
347350 else :
@@ -361,7 +364,10 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals
361364 temp_change = await smile .set_temperature (loc_id , new_temp )
362365 assert temp_change
363366 _LOGGER .info (" + worked as intended" )
364- except (pw_exceptions .ErrorSendingCommandError , pw_exceptions .ResponseError ):
367+ except (
368+ pw_exceptions .ErrorSendingCommandError ,
369+ pw_exceptions .ResponseError ,
370+ ):
365371 if unhappy :
366372 _LOGGER .info (" + failed as expected" )
367373 else :
@@ -380,7 +386,10 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals
380386 preset_change = await smile .set_preset (loc_id , new_preset )
381387 assert preset_change == assert_state
382388 _LOGGER .info (" + worked as intended" )
383- except (pw_exceptions .ErrorSendingCommandError , pw_exceptions .ResponseError ):
389+ except (
390+ pw_exceptions .ErrorSendingCommandError ,
391+ pw_exceptions .ResponseError ,
392+ ):
384393 if unhappy :
385394 _LOGGER .info (" + failed as expected" )
386395 else :
@@ -403,7 +412,10 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals
403412 )
404413 assert schema_change == assert_state
405414 _LOGGER .info (" + failed as intended" )
406- except (pw_exceptions .ErrorSendingCommandError , pw_exceptions .ResponseError ):
415+ except (
416+ pw_exceptions .ErrorSendingCommandError ,
417+ pw_exceptions .ResponseError ,
418+ ):
407419 if unhappy :
408420 _LOGGER .info (" + failed as expected before intended failure" )
409421 else :
0 commit comments