Align valid_entity_id with new slugify (#20231)

* slug

* ensure a dot

* fix

* schema_with_slug_keys

* lint

* test
This commit is contained in:
Johann Kellerman authored and Paulus Schoutsen committed 2019-01-21 09:45:11 -08:00
1 parent 6ca0da5c52
commit c36c708068
5 files changed
+32 -17

No files matched your search

+2 -2
View File
@@ -139,11 +139,11 @@ class TestWOLSwitch(unittest.TestCase):
'mac_address': '00-01-02-03-04-05',
'host': 'validhostname',
'turn_off': {
'service': 'shell_command.turn_off_TARGET',
'service': 'shell_command.turn_off_target',
},
}
})
calls = mock_service(self.hass, 'shell_command', 'turn_off_TARGET')
calls = mock_service(self.hass, 'shell_command', 'turn_off_target')
state = self.hass.states.get('switch.wake_on_lan')
assert STATE_OFF == state.state