diff --git a/pyfritzhome/devicetypes/fritzhomeentitybase.py b/pyfritzhome/devicetypes/fritzhomeentitybase.py index 7a8e437..ba17af5 100644 --- a/pyfritzhome/devicetypes/fritzhomeentitybase.py +++ b/pyfritzhome/devicetypes/fritzhomeentitybase.py @@ -42,6 +42,12 @@ def _update_from_node(self, node): self.ain = node.attrib["identifier"] self._functionsbitmask = int(node.attrib["functionbitmask"]) + # Workaround for broken AVM FRITZ!DECT 440 in FRITZ!OS < 7.20 + if (node.attrib["manufacturer"] == "AVM" + and node.attrib["productname"] == "FRITZ!DECT 440" + and node.find("humidity") is None): + self._functionsbitmask &= ~int(FritzhomeDeviceFeatures.HUMIDITY) + self.name = node.findtext("name").strip() self.supported_features = []