havenlighting 0.2.0__tar.gz → 0.2.2__tar.gz

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.
Files changed (20) hide show
  1. {havenlighting-0.2.0 → havenlighting-0.2.2}/PKG-INFO +1 -1
  2. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/__init__.py +1 -1
  3. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/devices/location.py +5 -0
  4. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting.egg-info/PKG-INFO +1 -1
  5. {havenlighting-0.2.0 → havenlighting-0.2.2}/pyproject.toml +1 -1
  6. {havenlighting-0.2.0 → havenlighting-0.2.2}/README.md +0 -0
  7. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/client.py +0 -0
  8. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/config.py +0 -0
  9. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/credentials.py +0 -0
  10. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/devices/light.py +0 -0
  11. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/exceptions.py +0 -0
  12. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/logging.py +0 -0
  13. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting/models.py +0 -0
  14. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting.egg-info/SOURCES.txt +0 -0
  15. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting.egg-info/dependency_links.txt +0 -0
  16. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting.egg-info/requires.txt +0 -0
  17. {havenlighting-0.2.0 → havenlighting-0.2.2}/havenlighting.egg-info/top_level.txt +0 -0
  18. {havenlighting-0.2.0 → havenlighting-0.2.2}/setup.cfg +0 -0
  19. {havenlighting-0.2.0 → havenlighting-0.2.2}/tests/test_client.py +0 -0
  20. {havenlighting-0.2.0 → havenlighting-0.2.2}/tests/test_light.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: havenlighting
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python client for Haven Lighting API
5
5
  Author-email: Mickey Schwab <mickeyschwab@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -3,7 +3,7 @@ from .devices.light import Light
3
3
  from .devices.location import Location
4
4
  from .exceptions import HavenException, AuthenticationError, DeviceError
5
5
 
6
- __version__ = "0.2.0"
6
+ __version__ = "0.2.1"
7
7
  __all__ = [
8
8
  "HavenClient",
9
9
  "Light",
@@ -27,6 +27,11 @@ class Location:
27
27
  self._lights: Dict[int, Light] = {}
28
28
  logger.debug("Initialized Location: %s (ID: %d)", self.name, location_id)
29
29
 
30
+ @property
31
+ def id(self) -> int:
32
+ """Get location ID."""
33
+ return self._location_id
34
+
30
35
  @property
31
36
  def name(self) -> str:
32
37
  """Get location name."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: havenlighting
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python client for Haven Lighting API
5
5
  Author-email: Mickey Schwab <mickeyschwab@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "havenlighting"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Python client for Haven Lighting API"
9
9
  authors = [{name = "Mickey Schwab", email = "mickeyschwab@gmail.com"}]
10
10
  license = {file = "LICENSE"}
File without changes
File without changes