Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #527 from Thomas55555/move-lat_long_bounds-to-map_…
Browse files Browse the repository at this point in the history
…utils

move lat_long_bounds to map_utils
  • Loading branch information
Thomas55555 authored Aug 2, 2023
2 parents 0853a8f + 77e6859 commit 25421eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions custom_components/husqvarna_automower/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""The constants for the Husqvarna Automower integration."""
from homeassistant.const import Platform
from shapely.geometry import Polygon

# Base component constants
NAME = "husqvarna_automower"
Expand Down Expand Up @@ -58,7 +57,6 @@
ZONE_ID = "zone_id"
ZONE_FINISH = "save"
ZONE_MOWERS = "sel_mowers"
LAT_LON_BOUNDS = Polygon.from_bounds(xmin=-90.0, ymin=-180.0, xmax=90.0, ymax=180.0)


# Defaults
Expand Down
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/map_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Utilities for parsing and validating coordinates."""

from PIL import Image, UnidentifiedImageError
from shapely.geometry import Point
from shapely.geometry import Point, Polygon

from .const import LAT_LON_BOUNDS
LAT_LON_BOUNDS = Polygon.from_bounds(xmin=-90.0, ymin=-180.0, xmax=90.0, ymax=180.0)


def validate_rotation(rotation: float) -> float:
Expand Down

0 comments on commit 25421eb

Please sign in to comment.