Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
Fix on top of 0.2.1

for 2025.1
  • Loading branch information
zaubererty authored Jan 7, 2025
1 parent eea3ea9 commit 79aae60
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions custom_components/mypv/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import logging
from homeassistant.const import CONF_MONITORED_CONDITIONS
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.const import (

from .const import (
SENSOR_TYPES,
DOMAIN,
DATA_COORDINATOR,
ELECTRIC_CURRENT_AMPERE,
FREQUENCY_HERTZ,
TEMP_CELSIUS,
)

from .const import SENSOR_TYPES, DOMAIN, DATA_COORDINATOR
from .coordinator import MYPVDataUpdateCoordinator

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -97,4 +99,4 @@ def device_info(self):
"name": self._name,
"manufacturer": "MYPV",
"model": self.model,
}
}

0 comments on commit 79aae60

Please # to comment.