Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Remove unused import of RestData
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellaalstrom authored Mar 3, 2021
1 parent 385ef24 commit 4bf12c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/krisinformation/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, CONF_RADIUS)
from homeassistant.util import Throttle
import homeassistant.util.dt as dt_util
from homeassistant.components.rest.sensor import RestData

__version__ = '1.0.0'

Expand Down Expand Up @@ -227,4 +226,4 @@ def calculate_distance(self, coords):
#Calculate the distance between them
dist = 6371.01 * acos(sin(slat2)*sin(elat2) + cos(slat2)*cos(elat2)*cos(slon2 - elon2))

return dist
return dist

1 comment on commit 4bf12c3

@tubalainen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Can also confirmed that there is no more errors in the log. Thanks! :)

Please sign in to comment.