'Ensure Kira sensor properly updates its attributes from callback.'

def test_kira_sensor_callback(self):

    kira.setup_platform(self.hass, TEST_CONFIG, self.add_devices, DISCOVERY_INFO)
    assert (len(self.DEVICES) == 1)
    sensor = self.DEVICES[0]
    assert (sensor.name == 'kira')
    sensor.hass = self.hass
    codeName = 'FAKE_CODE'
    deviceName = 'FAKE_DEVICE'
    codeTuple = (codeName, deviceName)
    sensor._update_callback(codeTuple)
    assert (sensor.state == codeName)
    assert (sensor.device_state_attributes == {kira.CONF_DEVICE: deviceName})
