def get_thermostats(self):
    if conf['FRITZ_TLS']:
        fritzbox = FritzBox(conf['FRITZ_IP'], conf['FRITZ_USER'], conf['FRITZ_PW'], use_tls=conf['FRITZ_TLS'], tls_cert_path='conf/fritz.crt')
    else:
        fritzbox = FritzBox(conf['FRITZ_IP'], conf['FRITZ_USER'], conf['FRITZ_PW'])
    fritzbox.login()
    actors = fritzbox.get_actors()
    thermostats = []
    for actor in actors:
        if actor.has_heating_controller:
            thermostats.append(actor)
    return thermostats
def get_thermostats(self):
    if conf['FRITZ_TLS']:
        fritzbox = FritzBox(conf['FRITZ_IP'], conf['FRITZ_USER'], conf['FRITZ_PW'], use_tls=conf['FRITZ_TLS'], tls_cert_path='conf/fritz.crt')
    else:
        fritzbox = FritzBox(conf['FRITZ_IP'], conf['FRITZ_USER'], conf['FRITZ_PW'])
    fritzbox.login()
    actors = fritzbox.get_actors()
    thermostats = []
    for actor in actors:
        if actor.has_heating_controller:
            thermostats.append(actor)
    return thermostats