Closed tobixx closed 1 year ago
We need a has_template
function in Fritzhome
class.
Maybe by just checking the FritzOS version (templates are available since 6.98) or by trying to gather the templates and if it does not return a valid xml with a templaytelist
element, we do not have templates. I've already asked the user in https://github.com/home-assistant/core/issues/83555#issuecomment-1344831069 to provide the outputs of gettemplatelistinfos
from abox with <6.98
Templates were introduced in Fritz OS 7, so every older device now hits a Traceback due to not checking the existent of the templates:
(shorter TB without homeassistant stack in front)
The result of
fritz._aha_request("gettemplateinfos")
is an empty string in this case.