lifx-emulator-core 3.0.2__py3-none-any.whl → 3.1.0__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.
lifx_emulator/server.py
CHANGED
|
@@ -128,6 +128,8 @@ class EmulatedLifxServer:
|
|
|
128
128
|
|
|
129
129
|
# Add initial devices to the device manager
|
|
130
130
|
for device in devices:
|
|
131
|
+
# Update device port to match server port
|
|
132
|
+
device.state.port = self.port
|
|
131
133
|
self._device_manager.add_device(device, self.scenario_manager)
|
|
132
134
|
|
|
133
135
|
# Activity observer - defaults to ActivityLogger if track_activity=True
|
|
@@ -360,6 +362,8 @@ class EmulatedLifxServer:
|
|
|
360
362
|
Returns:
|
|
361
363
|
True if added, False if device with same serial already exists
|
|
362
364
|
"""
|
|
365
|
+
# Update device port to match server port
|
|
366
|
+
device.state.port = self.port
|
|
363
367
|
return self._device_manager.add_device(device, self.scenario_manager)
|
|
364
368
|
|
|
365
369
|
def remove_device(self, serial: str) -> bool:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lifx-emulator-core
|
|
3
|
-
Version: 3.0
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Core LIFX Emulator library for testing LIFX LAN protocol libraries
|
|
5
5
|
Author-email: Avi Miller <me@dje.li>
|
|
6
6
|
Maintainer-email: Avi Miller <me@dje.li>
|
|
@@ -10,6 +10,7 @@ Classifier: Framework :: Pytest
|
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Natural Language :: English
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -18,7 +19,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
18
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
20
|
Classifier: Topic :: Software Development :: Testing
|
|
20
21
|
Classifier: Typing :: Typed
|
|
21
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
22
23
|
Requires-Dist: pydantic>=2.0.0
|
|
23
24
|
Requires-Dist: pyyaml>=6.0.3
|
|
24
25
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
lifx_emulator/__init__.py,sha256=SSnQg0RiCaID7DhHOGZoVIDQ3_8Lyt0J9cA_2StF63s,824
|
|
2
2
|
lifx_emulator/constants.py,sha256=DFZkUsdewE-x_3MgO28tMGkjUCWPeYc3xLj_EXViGOw,1032
|
|
3
|
-
lifx_emulator/server.py,sha256=
|
|
3
|
+
lifx_emulator/server.py,sha256=Fc0AiSeJ43XnF1MMTqWBkeYIW-KOhZpqNp0Y2x4RqEE,16622
|
|
4
4
|
lifx_emulator/devices/__init__.py,sha256=QlBTPnFErJcSKLvGyeDwemh7xcpjYvB_L5siKsjr3s8,1089
|
|
5
5
|
lifx_emulator/devices/device.py,sha256=yEOXc_xr1X45bJzG2qB-A-oIHwnA8qqYlIsFialobGc,15780
|
|
6
6
|
lifx_emulator/devices/manager.py,sha256=XDrT82um5sgNpNihLj5RsNvHqdVI1bK9YY2eBzWIcf0,8162
|
|
@@ -42,6 +42,6 @@ lifx_emulator/scenarios/__init__.py,sha256=CGjudoWvyysvFj2xej11N2cr3mYROGtRb9zVH
|
|
|
42
42
|
lifx_emulator/scenarios/manager.py,sha256=1esxRdz74UynNk1wb86MGZ2ZFAuMzByuu74nRe3D-Og,11163
|
|
43
43
|
lifx_emulator/scenarios/models.py,sha256=BKS_fGvrbkGe-vK3arZ0w2f9adS1UZhiOoKpu7GENnc,4099
|
|
44
44
|
lifx_emulator/scenarios/persistence.py,sha256=3vjtPNFYfag38tUxuqxkGpWhQ7uBitc1rLroSAuw9N8,8881
|
|
45
|
-
lifx_emulator_core-3.0.
|
|
46
|
-
lifx_emulator_core-3.0.
|
|
47
|
-
lifx_emulator_core-3.0.
|
|
45
|
+
lifx_emulator_core-3.1.0.dist-info/METADATA,sha256=bWWlrkVVkfijJUeTVb615O6Xly_Gx8I5xbsapx-TCQg,3217
|
|
46
|
+
lifx_emulator_core-3.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
47
|
+
lifx_emulator_core-3.1.0.dist-info/RECORD,,
|
|
File without changes
|