mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
remove lat/long check
This commit is contained in:
parent
a50ed46950
commit
57e2a8a0c9
@ -47,10 +47,6 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60)
|
|||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
""" Get the Swiss public transport sensor. """
|
""" Get the Swiss public transport sensor. """
|
||||||
|
|
||||||
if None in (hass.config.latitude, hass.config.longitude):
|
|
||||||
_LOGGER.error("Latitude or longitude not set in Home Assistant config")
|
|
||||||
return False
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# pylint: disable=unused-variable
|
# pylint: disable=unused-variable
|
||||||
from requests import get
|
from requests import get
|
||||||
|
Loading…
x
Reference in New Issue
Block a user