async def test_switch_light_status(hass: HomeAssistant, light: Light):
    'Tests status light switch for lights.'
    description = LIGHT_SWITCHES[1]
    light.__fields__['set_status_light'] = Mock()
    light.set_status_light = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, light, description)
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    light.set_status_light.assert_called_once_with(True)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    light.set_status_light.assert_called_with(False)
Tests status light switch for lights.
async def test_switch_light_status(hass: HomeAssistant, light: Light):
    
    description = LIGHT_SWITCHES[1]
    light.__fields__['set_status_light'] = Mock()
    light.set_status_light = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, light, description)
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    light.set_status_light.assert_called_once_with(True)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    light.set_status_light.assert_called_with(False)