Skip to content

Commit

Permalink
Fix some RUFF warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MadOne committed Oct 24, 2024
1 parent ccec94a commit cafc668
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/weishaupt_modbus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""init"""
"""init."""

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
Expand All @@ -17,6 +17,7 @@
# Return boolean to indicate that initialization was successful.
# return True
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up entry."""
# Store an instance of the "connecting" class that does the work of speaking
# with your actual devices.
# hass.data.setdefault(DOMAIN, {})[entry.entry_id] = hub.Hub(hass, entry.data["host"])
Expand All @@ -30,6 +31,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload entry."""
# This is called when an entry/configured device is to be removed. The class
# needs to unload itself, and remove callbacks. See the classes for further
# details
Expand Down

0 comments on commit cafc668

Please sign in to comment.