Skip to content

Commit

Permalink
Suppress 'found an unsupported model' warning
Browse files Browse the repository at this point in the history
This is not needed anymore, as #1845 reports on missing identifiers and roborocks are covered by a wildcard matcher in devicefactory
  • Loading branch information
rytilahti committed Oct 21, 2023
1 parent fb8128f commit 0ae2ea3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions miio/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ def _fetch_info(self) -> DeviceInfo:
devinfo = DeviceInfo(self.send("miIO.info"))
self._info = devinfo
_LOGGER.debug("Detected model %s", devinfo.model)
cls = self.__class__.__name__
# Ignore bases and generic classes
bases = ["Device", "MiotDevice", "GenericMiot"]
if devinfo.model not in self.supported_models and cls not in bases:
_LOGGER.warning(
"Found an unsupported model '%s' for class '%s'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/",
devinfo.model,
cls,
)

return devinfo
except PayloadDecodeException as ex:
Expand Down

0 comments on commit 0ae2ea3

Please sign in to comment.