equal
deleted
inserted
replaced
487 def state(self): |
487 def state(self): |
488 """return current state name""" |
488 """return current state name""" |
489 try: |
489 try: |
490 return self.current_state.name |
490 return self.current_state.name |
491 except AttributeError: |
491 except AttributeError: |
492 self.warning('entity %s has no state', self) |
492 self.warning('entity %s has no state', self.entity) |
493 return None |
493 return None |
494 |
494 |
495 @property |
495 @property |
496 def printable_state(self): |
496 def printable_state(self): |
497 """return current state name translated to context's language""" |
497 """return current state name translated to context's language""" |