Skip to content

Commit

Permalink
Fix sensor setup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts committed Aug 16, 2024
1 parent d7fc3c3 commit 6931a86
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
Expand Up @@ -2,7 +2,7 @@

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

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

Expand Down

0 comments on commit 6931a86

Please sign in to comment.