Skip to content

Commit

Permalink
Update number.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wimb0 authored Feb 11, 2025
1 parent df3c66c commit 9b333f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/saj_modbus/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

import logging
from typing import Optional

from homeassistant.components.number import NumberEntity
from homeassistant.const import CONF_NAME
Expand All @@ -21,7 +20,7 @@


async def async_setup_entry(hass, entry, async_add_entities):
"""Setup entries."""
"""Set up entry for hub."""
hub_name = entry.data[CONF_NAME]
hub = hass.data[DOMAIN][hub_name]["hub"]

Expand Down

0 comments on commit 9b333f7

Please sign in to comment.