valetudo-map-parser 0.1.9b35__py3-none-any.whl → 0.1.9b37__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,9 +116,11 @@ class RoomStore:
116
116
  """
117
117
  Return the number of rooms stored for this vacuum.
118
118
  This is simply the number of keys in the vacuums_data dictionary.
119
+ If no data is stored, return the default number of rooms.
119
120
  """
120
121
  if isinstance(self.vacuums_data, dict):
121
- return len(self.vacuums_data)
122
+ count = len(self.vacuums_data)
123
+ return count if count > 0 else DEFAULT_ROOMS
122
124
  return DEFAULT_ROOMS
123
125
 
124
126
  @classmethod
@@ -606,6 +608,7 @@ class CameraModes:
606
608
  CAMERA_ON = True
607
609
 
608
610
 
611
+ # noinspection PyTypeChecker
609
612
  @dataclass
610
613
  class TrimsData:
611
614
  """Dataclass to store and manage trims data."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: valetudo-map-parser
3
- Version: 0.1.9b35
3
+ Version: 0.1.9b37
4
4
  Summary: A Python library to parse Valetudo map data returning a PIL Image object.
5
5
  License: Apache-2.0
6
6
  Author: Sandro Cantarella
@@ -6,7 +6,7 @@ valetudo_map_parser/config/colors_man.py,sha256=9b5c6XmpMzhEiunwfIjVkOk1lDyV-UFo
6
6
  valetudo_map_parser/config/drawable.py,sha256=hsrEJCMVOrjs5sJfr26SeqJD0VNlYWwxcVkkHeaxx7U,20356
7
7
  valetudo_map_parser/config/rand25_parser.py,sha256=kIayyqVZBfQfAMkiArzqrrj9vqZB3pkgT0Y5ufrQmGA,16448
8
8
  valetudo_map_parser/config/shared.py,sha256=tZrUDVZ5acyKPuyyp9Zca95SbZfR1Rz2hRAcIEu2LoU,10149
9
- valetudo_map_parser/config/types.py,sha256=L-7Jhx-nmT6iIP3g4vMt6xmjqF-HTj2ygix_gBLRg5Y,18018
9
+ valetudo_map_parser/config/types.py,sha256=qSstrRNnXzxfNjeR5XKKQi1qE3T10x4x8Id2_kOuZzM,18171
10
10
  valetudo_map_parser/config/utils.py,sha256=yPutV-FEQlDB2z3LhOOFznoprHCApF-zrQMiOtkcO-k,19198
11
11
  valetudo_map_parser/hypfer_draw.py,sha256=1trtil-CQcDSiAMBWPBmuP5L9MWHGTp5OlY7MX8FgDg,14932
12
12
  valetudo_map_parser/hypfer_handler.py,sha256=f_1oG69BA94sjcZ8O9Y6A1H-YyEutbvERzqnwgremvg,13001
@@ -14,8 +14,8 @@ valetudo_map_parser/map_data.py,sha256=6FbQfgxFB6E4kcOWokReJOVSekVaE1kStyhTQhAhi
14
14
  valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  valetudo_map_parser/rand25_handler.py,sha256=GxZ8UDUYEXlQme-m29HZEIstBQL3zDJr5DOsgqBolUk,15235
16
16
  valetudo_map_parser/reimg_draw.py,sha256=V0JUASavKVnEtAhv7nOV4pjsRxZrNsjIUtctbKO8wvk,12507
17
- valetudo_map_parser-0.1.9b35.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
18
- valetudo_map_parser-0.1.9b35.dist-info/METADATA,sha256=-Sa1QB1XL__hYvO9p65-pDxwgO58MihhsR7sAGebkFU,1029
19
- valetudo_map_parser-0.1.9b35.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
20
- valetudo_map_parser-0.1.9b35.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
21
- valetudo_map_parser-0.1.9b35.dist-info/RECORD,,
17
+ valetudo_map_parser-0.1.9b37.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
18
+ valetudo_map_parser-0.1.9b37.dist-info/METADATA,sha256=OJCrs0mNicuKehzKXgTh2v_55Dwds9JqMBgjT16KjpU,1029
19
+ valetudo_map_parser-0.1.9b37.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
20
+ valetudo_map_parser-0.1.9b37.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
21
+ valetudo_map_parser-0.1.9b37.dist-info/RECORD,,