Anders Melchiorsen 5fa8037231 Always return True/False from is_state and is_state_attr (#7138)
* Always return True/False from is_state and is_state_attr

These functions are documented to always return True/False but the
short-circuit evaluation would return None if the entity_id did not exist.

* Reword into a single statement
2017-04-16 16:36:15 -07:00
..
2016-03-09 11:15:04 +01:00
2017-03-30 00:50:53 -07:00
2016-09-27 21:29:55 -07:00
2016-10-30 22:18:53 +01:00
2016-10-30 22:18:53 +01:00