PyPlumIO 0.5.45__py3-none-any.whl → 0.5.46__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.
pyplumio/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.5.45'
21
- __version_tuple__ = version_tuple = (0, 5, 45)
20
+ __version__ = version = '0.5.46'
21
+ __version_tuple__ = version_tuple = (0, 5, 46)
@@ -12,6 +12,7 @@ from pyplumio.const import (
12
12
  ATTR_FRAME_ERRORS,
13
13
  ATTR_PASSWORD,
14
14
  ATTR_SENSORS,
15
+ ATTR_SETUP,
15
16
  STATE_OFF,
16
17
  STATE_ON,
17
18
  DeviceState,
@@ -192,16 +193,8 @@ class EcoMAX(PhysicalDevice):
192
193
  self, frame_type: FrameType | int, version: int
193
194
  ) -> None:
194
195
  """Request frame version from the device."""
195
- request_frame = False
196
- if frame_type not in REQUIRED_TYPES:
197
- # Frame not in required, so we'll request it right away.
198
- request_frame = True
199
-
200
- if frame_type in self._frame_versions:
201
- # Frame in required and has been requested once by setup.
202
- request_frame = True
203
-
204
- if request_frame:
196
+ setup_done = self.get_nowait(ATTR_SETUP, False)
197
+ if setup_done or frame_type not in REQUIRED_TYPES:
205
198
  await super()._request_frame_version(frame_type, version)
206
199
 
207
200
  async def _set_ecomax_state(self, state: State) -> bool:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyPlumIO
3
- Version: 0.5.45
3
+ Version: 0.5.46
4
4
  Summary: PyPlumIO is a native ecoNET library for Plum ecoMAX controllers.
5
5
  Author-email: Denis Paavilainen <denpa@denpa.pro>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  pyplumio/__init__.py,sha256=3H5SO4WFw5mBTFeEyD4w0H8-MsNo93NyOH3RyMN7IS0,3337
2
2
  pyplumio/__main__.py,sha256=3IwHHSq-iay5FaeMc95klobe-xv82yydSKcBE7BFZ6M,500
3
- pyplumio/_version.py,sha256=-86mTNpSQ6VkAt3ooW1e8lrSz1Y_CBNteUTIu8IdnFo,513
3
+ pyplumio/_version.py,sha256=SpeD_oWDl9ilOk9KIMLiK5YpRdtDAJ7YkARdOAn_1y0,513
4
4
  pyplumio/connection.py,sha256=9MCPb8W62uqCrzd1YCROcn9cCjRY8E65934FnJDF5Js,5902
5
5
  pyplumio/const.py,sha256=FxF97bl_GunYuB8Wo72zCzHtznRCM64ygC2qfaR3UyA,5684
6
6
  pyplumio/data_types.py,sha256=r-QOIZiIpBFo4kRongyu8n0BHTaEU6wWMTmNkWBNjq8,9223
@@ -11,7 +11,7 @@ pyplumio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  pyplumio/stream.py,sha256=iCB-XlNXRRE0p7nstb1AkXwVDwcCsgym_ggB_IDiJc8,4926
12
12
  pyplumio/utils.py,sha256=D6_SJzYkFjXoUrlNPt_mIQAP8hjMU05RsTqlAFphj3Y,1205
13
13
  pyplumio/devices/__init__.py,sha256=o2gkAPaOpTzufTXMyNuYC1xWSKtx0j22n89G1JxK9gA,7932
14
- pyplumio/devices/ecomax.py,sha256=5uODRBGEiM5TIgO2rXjz42fdpW-u4Sy3G-mRZsXYpwY,16424
14
+ pyplumio/devices/ecomax.py,sha256=Qm2oIXVfWW1Mry3qGhrnAA150Z_jHMJrLbdgfqs9A3A,16200
15
15
  pyplumio/devices/ecoster.py,sha256=X46ky5XT8jHMFq9sBW0ve8ZI_tjItQDMt4moXsW-ogY,307
16
16
  pyplumio/devices/mixer.py,sha256=cuqhWcIeGgHNIVqmRm-NyvaRb-ltGY5YZXrQN81xKP0,2744
17
17
  pyplumio/devices/thermostat.py,sha256=Wylm0xgheS6E_y-w0E8JEKax6Gckfw7qZu9fgv8iSMc,2266
@@ -57,8 +57,8 @@ pyplumio/structures/statuses.py,sha256=1h-EUw1UtuS44E19cNOSavUgZeAxsLgX3iS0eVC8p
57
57
  pyplumio/structures/temperatures.py,sha256=2VD3P_vwp9PEBkOn2-WhifOR8w-UYNq35aAxle0z2Vg,2831
58
58
  pyplumio/structures/thermostat_parameters.py,sha256=st3x3HkjQm3hqBrn_fpvPDQu8fuc-Sx33ONB19ViQak,3007
59
59
  pyplumio/structures/thermostat_sensors.py,sha256=rO9jTZWGQpThtJqVdbbv8sYMYHxJi4MfwZQza69L2zw,3399
60
- pyplumio-0.5.45.dist-info/licenses/LICENSE,sha256=m-UuZFjXJ22uPTGm9kSHS8bqjsf5T8k2wL9bJn1Y04o,1088
61
- pyplumio-0.5.45.dist-info/METADATA,sha256=h3d0PYp2XdGlvRaRBdYLMxQAoPcPXsGH30QNq0JfsKo,5611
62
- pyplumio-0.5.45.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
63
- pyplumio-0.5.45.dist-info/top_level.txt,sha256=kNBz9UPPkPD9teDn3U_sEy5LjzwLm9KfADCXtBlbw8A,9
64
- pyplumio-0.5.45.dist-info/RECORD,,
60
+ pyplumio-0.5.46.dist-info/licenses/LICENSE,sha256=m-UuZFjXJ22uPTGm9kSHS8bqjsf5T8k2wL9bJn1Y04o,1088
61
+ pyplumio-0.5.46.dist-info/METADATA,sha256=WflfGHdBYou1j9zKrqFtcRg_NJz4I7lR3DUD3KiVf_0,5611
62
+ pyplumio-0.5.46.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
63
+ pyplumio-0.5.46.dist-info/top_level.txt,sha256=kNBz9UPPkPD9teDn3U_sEy5LjzwLm9KfADCXtBlbw8A,9
64
+ pyplumio-0.5.46.dist-info/RECORD,,