diff --git a/homeassistant/components/ign_sismologia/geo_location.py b/homeassistant/components/ign_sismologia/geo_location.py index af7fab5b79b..779891f4bc2 100644 --- a/homeassistant/components/ign_sismologia/geo_location.py +++ b/homeassistant/components/ign_sismologia/geo_location.py @@ -13,7 +13,10 @@ from georss_ign_sismologia_client import ( ) import voluptuous as vol -from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent +from homeassistant.components.geo_location import ( + PLATFORM_SCHEMA as GEO_LOCATION_PLATFORM_SCHEMA, + GeolocationEvent, +) from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE, @@ -47,7 +50,7 @@ SCAN_INTERVAL = timedelta(minutes=5) SOURCE = "ign_sismologia" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = GEO_LOCATION_PLATFORM_SCHEMA.extend( { vol.Optional(CONF_LATITUDE): cv.latitude, vol.Optional(CONF_LONGITUDE): cv.longitude, diff --git a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py index 24bae7f7b12..230141379e5 100644 --- a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py +++ b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py @@ -13,7 +13,10 @@ from aio_geojson_nsw_rfs_incidents.feed_entry import ( ) import voluptuous as vol -from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent +from homeassistant.components.geo_location import ( + PLATFORM_SCHEMA as GEO_LOCATION_PLATFORM_SCHEMA, + GeolocationEvent, +) from homeassistant.const import ( ATTR_LOCATION, CONF_LATITUDE, @@ -59,7 +62,7 @@ SOURCE = "nsw_rural_fire_service_feed" VALID_CATEGORIES = ["Advice", "Emergency Warning", "Not Applicable", "Watch and Act"] -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = GEO_LOCATION_PLATFORM_SCHEMA.extend( { vol.Optional(CONF_CATEGORIES, default=[]): vol.All( cv.ensure_list, [vol.In(VALID_CATEGORIES)] diff --git a/homeassistant/components/qld_bushfire/geo_location.py b/homeassistant/components/qld_bushfire/geo_location.py index 5d0173f8c54..c8cfc30b2b5 100644 --- a/homeassistant/components/qld_bushfire/geo_location.py +++ b/homeassistant/components/qld_bushfire/geo_location.py @@ -13,7 +13,10 @@ from georss_qld_bushfire_alert_client import ( ) import voluptuous as vol -from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent +from homeassistant.components.geo_location import ( + PLATFORM_SCHEMA as GEO_LOCATION_PLATFORM_SCHEMA, + GeolocationEvent, +) from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE, @@ -56,7 +59,7 @@ VALID_CATEGORIES = [ "Information", ] -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = GEO_LOCATION_PLATFORM_SCHEMA.extend( { vol.Optional(CONF_LATITUDE): cv.latitude, vol.Optional(CONF_LONGITUDE): cv.longitude, diff --git a/homeassistant/components/usgs_earthquakes_feed/geo_location.py b/homeassistant/components/usgs_earthquakes_feed/geo_location.py index c8ee88a84ed..33455dc11a9 100644 --- a/homeassistant/components/usgs_earthquakes_feed/geo_location.py +++ b/homeassistant/components/usgs_earthquakes_feed/geo_location.py @@ -13,7 +13,10 @@ from aio_geojson_usgs_earthquakes.feed_entry import ( ) import voluptuous as vol -from homeassistant.components.geo_location import PLATFORM_SCHEMA, GeolocationEvent +from homeassistant.components.geo_location import ( + PLATFORM_SCHEMA as GEO_LOCATION_PLATFORM_SCHEMA, + GeolocationEvent, +) from homeassistant.const import ( ATTR_TIME, CONF_LATITUDE, @@ -81,7 +84,7 @@ VALID_FEED_TYPES = [ "past_month_all_earthquakes", ] -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = GEO_LOCATION_PLATFORM_SCHEMA.extend( { vol.Required(CONF_FEED_TYPE): vol.In(VALID_FEED_TYPES), vol.Optional(CONF_LATITUDE): cv.latitude,