Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
MadOne committed Oct 24, 2024
1 parent cdd6270 commit fb8962f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weishaupt_modbus/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def _async_update_data(self):
try:
await self._modbus_api.close()
except:
warnings.war("Closing connection to heatpump failed")
warnings.warn("Closing connection to heatpump failed")
# except: # noqa: E722 # ApiAuthError as err:
# return None
# Raising ConfigEntryAuthFailed will cancel future updates
Expand Down

0 comments on commit fb8962f

Please sign in to comment.