Skip to content

Commit

Permalink
backup.py v1.5.9-rc2
Browse files Browse the repository at this point in the history
camera.py v1.5.9-rc2
camera_processing.py v1.5.9-rc2
camera_shared.py v1.5.9-rc2
connector.py v1.5.9-rc2
drawable.py v1.5.9-rc2
image_handler.py v1.5.9-rc2
manifest.json v1.5.9-rc2
types.py v1.5.9-rc2

Signed-off-by: SCA075 <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
sca075 committed Mar 1, 2024
1 parent ebe53ac commit bec3f90
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions custom_components/valetudo_vacuum_camera/backup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""
Version 1.5.9-rc2
Custom component to integrate the Valetudo vacuum with Home Assistant.
Home Assistant Backup support.
"""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/valetudo_vacuum_camera/camera.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Camera Version v1.5.9
Camera Version v1.5.9-rc2
Image Processing Threading implemented on Version 1.5.7.
"""

Expand Down
6 changes: 3 additions & 3 deletions custom_components/valetudo_vacuum_camera/camera_processing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Multiprocessing module (version v1.5.9-beta.2)
Multiprocessing module (version v1.5.9-rc2)
This module provide the image multiprocessing in order to
avoid the overload of the main_thread of Home Assistant.
"""
Expand Down Expand Up @@ -184,7 +184,7 @@ async def run_async_process_valetudo_data(self, parsed_json):

if isinstance(images, list) and len(images) > 0:
_LOGGER.debug(
f"{self._shared.file_name}: Got {len(images)} elements list.."
f"{self._shared.file_name}: Camera frame processed."
)
result = images[0]
else:
Expand All @@ -208,7 +208,7 @@ def get_status_text(self, text_img: PilPNG):
f"{self._shared.file_name}: {self._shared.vacuum_state.capitalize()}"
)
if not self._shared.vacuum_connection:
status_text = f"{self._shared.file_name}: Disconnected from MQTT"
status_text = f"{self._shared.file_name}: Disconnected from MQTT?"
else:
if self._shared.current_room:
try:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/valetudo_vacuum_camera/camera_shared.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Class Camera Shared.
Keep the data between the modules.
Version v1.5.9-beta.2
Version 1.5.9-rc2
"""

import logging
Expand Down
2 changes: 1 addition & 1 deletion custom_components/valetudo_vacuum_camera/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/sca075/valetudo_vacuum_camera/issues",
"requirements": ["pillow", "numpy", "svgwrite"],
"version": "v1.5.9-beta.2"
"version": "v1.5.9-rc2"
}
7 changes: 4 additions & 3 deletions custom_components/valetudo_vacuum_camera/types.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""
This module contains type aliases for the project.
Last Updated: Version 1.5.9
Version 1.5.9-rc2
"""

from typing import Union, Tuple, Dict, Any, AnyStr
from PIL import Image
from typing import Union, Tuple, Dict, Any

import numpy as np
from PIL import Image

Color = Union[Tuple[int, int, int], Tuple[int, int, int, int]]
Colors = Dict[str, Color]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/valetudo_vacuum_camera/utils/drawable.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Drawable is part of the Image_Handler
used functions to draw the elements on the Numpy Array
that is actually our camera frame.
Last changes on Version: 1.5.9
Version 1.5.9-rc2
"""

import logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Version 1.5.9-beta.1
Version 1.5.9-rc2
- Removed the PNG decode, the json is extracted from map-data instead of map-data hass.
- Tested no influence on the camera performance.
- Added gzip library used in Valetudo RE data compression.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Image Handler Module.
It returns the PIL PNG image frame relative to the Map Data extrapolated from the vacuum json.
It also returns calibration, rooms data to the card and other images information to the camera.
Last Changed on Version: 1.5.9-beta.2
Last Changed on Version: 1.5.9-rc2
"""

from __future__ import annotations
Expand All @@ -11,10 +11,10 @@
import json
import logging

from PIL import Image # , ImageOps
import numpy as np
from psutil_home_assistant import PsutilWrapper as ProcInspector
import svgwrite
from PIL import Image # , ImageOps
from psutil_home_assistant import PsutilWrapper as ProcInspector
from svgwrite import shapes

from custom_components.valetudo_vacuum_camera.types import (
Expand Down

0 comments on commit bec3f90

Please sign in to comment.