Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str For NameStore TupleLoad NameLoad Num Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Dict NameLoad NameLoad Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Dict NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Dict NameLoad NameLoad Str Num Assign NameStore Call NameLoad Str Str Dict NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Dict NameLoad NameLoad Num Num Assign NameStore Call NameLoad Str Str Dict NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Num ListLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A Tests Home Assistant location helpers. N/A unittest homeassistant.const ATTR_LATITUDE ATTR_LONGITUDE homeassistant.core State homeassistant.helpers location TestHelpersLocation N/A N/A unittest TestCase N/A N/A Setup the tests. test_has_location_with_invalid_states N/A N/A self N/A N/A N/A Setup the tests. N/A state N/A None 1 hello object N/A N/A N/A N/A self assertFalse N/A N/A location has_location state N/A test_has_location_with_states_with_invalid_locations N/A N/A self N/A N/A N/A Setup the tests. N/A state N/A State hello.world invalid N/A ATTR_LATITUDE ATTR_LONGITUDE no number 123.12 N/A N/A N/A self assertFalse N/A N/A location has_location state N/A test_has_location_with_states_with_valid_location N/A N/A self N/A N/A N/A Setup the tests. N/A state N/A State hello.world invalid N/A ATTR_LATITUDE ATTR_LONGITUDE 123.12 123.12 N/A N/A N/A self assertTrue N/A N/A location has_location state N/A test_closest_with_no_states_with_location N/A N/A self N/A N/A N/A Setup the tests. N/A state N/A State light.test on N/A state2 N/A State light.test on N/A ATTR_LATITUDE ATTR_LONGITUDE invalid 123.45 N/A state3 N/A State light.test on N/A ATTR_LONGITUDE 123.45 N/A N/A N/A self assertIsNone N/A N/A location closest 123.45 123.45 N/A state state2 state3 N/A test_closest_returns_closest N/A N/A self N/A N/A N/A Test . N/A state N/A State light.test on N/A ATTR_LATITUDE ATTR_LONGITUDE 124.45 124.45 N/A state2 N/A State light.test on N/A ATTR_LATITUDE ATTR_LONGITUDE 125.45 125.45 N/A N/A N/A self assertEqual state N/A N/A location closest 123.45 123.45 N/A state state2 N/A N/A