def __get__(self, instance, owner): stateattrs = utils.StateAttrs(instance.get_state()) return stateattrs
def __get__(self, instance, owner): with conf.ha_state_lock: state = utils.StateAttrs(conf.ha_state) return state
def __get__(self, instance, owner): state = utils.StateAttrs( instance.ad.get_state(instance.namespace, None, None, None)) return state