Ejemplo n.º 1
0
 def __get__(self, instance, owner):
     stateattrs = utils.StateAttrs(instance.get_state())
     return stateattrs
Ejemplo n.º 2
0
 def __get__(self, instance, owner):
     with conf.ha_state_lock:
         state = utils.StateAttrs(conf.ha_state)
     return state
Ejemplo n.º 3
0
 def __get__(self, instance, owner):
     state = utils.StateAttrs(
         instance.ad.get_state(instance.namespace, None, None, None))
     return state