Skip to content

Commit 4c7b10c

Browse files
committed
Add error-message for Smiles with unsupported firmware
1 parent c892503 commit 4c7b10c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

plugwise/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,19 @@ async def _smile_detect(self, result: etree, dsmrmain: etree) -> None:
473473
LOGGER.debug("Plugwise identified as %s", self._target_smile)
474474
if self._target_smile not in SMILES:
475475
LOGGER.error(
476-
"Your version Smile identified as %s seems unsupported by our plugin, please"
476+
"Your Smile identified as %s seems unsupported by our plugin, please"
477477
" create an issue on http://github.com/plugwise/python-plugwise",
478478
self._target_smile,
479479
)
480480
raise UnsupportedDeviceError
481481

482+
if self._target_smile in ("smile_open_therm_v2", "smile_thermo_v3"):
483+
LOGGER.error(
484+
"Your Smile identified as %s needs a firmware update as it's firmware is severly outdated",
485+
self._target_smile,
486+
)
487+
raise UnsupportedDeviceError
488+
482489
self.smile_model = "Gateway"
483490
self.smile_name = SMILES[self._target_smile].smile_name
484491
self.smile_type = SMILES[self._target_smile].smile_type

0 commit comments

Comments
 (0)