Skip to content

Commit

Permalink
Fix import statement 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander0042 committed Aug 15, 2024
1 parent ab08d21 commit 57488a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/pirateweather/sensor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Support for Pirate Weather (Dark Sky Compatable) weather service."""

import logging
from datetime import fromtimestamp
from dataclasses import dataclass, field
import datetime as datetime
from typing import Literal, NamedTuple

import homeassistant.helpers.config_validation as cv
Expand Down Expand Up @@ -1172,7 +1172,7 @@ def get_state(self, data):
"sunrise_time",
"sunset_time",
]:
outState = datetime.fromtimestamp(state)
outState = fromtimestamp(state)
else:
outState = state

Expand Down

0 comments on commit 57488a5

Please sign in to comment.