Skip to content

Commit

Permalink
Remove all unnecessary log messages from the camera entity #75
Browse files Browse the repository at this point in the history
  • Loading branch information
ufozone committed Mar 29, 2024
1 parent 648a166 commit 86b3361
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_components/zcsmower/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ def __init__(
self.map_rotation = 0

if self.map_enabled:
LOGGER.info("Map enabled")
self.map_gps_top_left = self.config_entry.options.get(CONF_MAP_GPS_TOP_LEFT, None)
self.map_gps_bottom_right = self.config_entry.options.get(CONF_MAP_GPS_BOTTOM_RIGHT, None)
self.map_rotation = self.config_entry.options.get(CONF_MAP_ROTATION, 0.0)
else:
LOGGER.info("Map disabled")
latitude_current = self._get_attribute(ATTR_LOCATION, {}).get(ATTR_LATITUDE, None)
longitude_current = self._get_attribute(ATTR_LOCATION, {}).get(ATTR_LONGITUDE, None)
if latitude_current and longitude_current:
Expand Down Expand Up @@ -171,7 +169,6 @@ def _generate_image(self) -> None:
map_image = map_image.resize(map_image_size)
else:
map_image = self._create_empty_map_image("No valid path configured to a map image.")
LOGGER.warning("No valid map image path configured")
else:
map_image = self._create_empty_map_image("Map is disabled.")

Expand All @@ -193,7 +190,6 @@ def _generate_image(self) -> None:
if history_enable and location_history is not None:
# If current location is not last item in location history, append to it
if location_current and location_current not in location_history[-1:]:
LOGGER.debug("Map: Current location is not last item in location history")
location_history.append(location_current)

# Calculate map points
Expand Down

0 comments on commit 86b3361

Please sign in to comment.