async def test_is_on(hass):
    'Test is on service call.'
    assert (not fan.is_on(hass, FAN_ENTITY_ID))
    (await common.async_turn_on(hass, FAN_ENTITY_ID))
    assert fan.is_on(hass, FAN_ENTITY_ID)
Test is on service call.
async def test_is_on(hass):
    
    assert (not fan.is_on(hass, FAN_ENTITY_ID))
    (await common.async_turn_on(hass, FAN_ENTITY_ID))
    assert fan.is_on(hass, FAN_ENTITY_ID)