Skip to content

Commit 5a8ebbf

Browse files
authored
Merge pull request #26 from Cryolitia-Forks/main
feat(satellitetracker): add GUI config entry for min elevation
2 parents 933fabf + a07041d commit 5a8ebbf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

custom_components/satellitetracker/config_flow.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
from .const import (
2323
DOMAIN,
2424
CONF_MIN_VISIBILITY,
25-
DEFAULT_MIN_VISIBILITY,
25+
DEFAULT_MIN_VISIBILITY,
26+
CONF_MIN_ELEVATION,
27+
DEFAULT_MIN_ELEVATION,
2628
DEFAULT_POLLING_INTERVAL,
2729
CONF_SATELLITE,
2830
CONF_MIN_ALERT,
@@ -264,6 +266,12 @@ async def async_step_init(self, user_input=None):
264266
CONF_MIN_VISIBILITY, DEFAULT_MIN_VISIBILITY
265267
),
266268
):int,
269+
vol.Optional(
270+
CONF_MIN_ELEVATION,
271+
default=self._config_entry.options.get(
272+
CONF_MIN_ELEVATION, DEFAULT_MIN_ELEVATION
273+
),
274+
):int,
267275
vol.Optional(
268276
CONF_MIN_ALERT,
269277
default=self._config_entry.options.get(

0 commit comments

Comments
 (0)