'Test for firing at.'

def test_if_fires_using_at(self):

    assert setup_component(self.hass, automation.DOMAIN, {automation.DOMAIN: {'trigger': {'platform': 'time', 'at': '5:00:00'}, 'action': {'service': 'test.automation', 'data_template': {'some': '{{    trigger.platform    }}    -    {{    trigger.now.hour    }}'}}}})
    fire_time_changed(self.hass, dt_util.utcnow().replace(hour=5, minute=0, second=0))
    self.hass.block_till_done()
    self.assertEqual(1, len(self.calls))
    self.assertEqual('time    -    5', self.calls[0].data['some'])
