Пример #1
0
 def __get__(self, instance, owner):
     stateattrs = utils.StateAttrs(instance.get_state())
     return stateattrs
Пример #2
0
 def __get__(self, instance, owner):
     with conf.ha_state_lock:
         state = utils.StateAttrs(conf.ha_state)
     return state
Пример #3
0
 def __get__(self, instance, owner):
     state = utils.StateAttrs(
         instance.ad.get_state(instance.namespace, None, None, None))
     return state