'Check an invalid configuration.'

def test_setup_platform_invalid_config(self):

    with assert_setup_component(0):
        assert setup_component(self.hass, 'sensor', {'sensor': {'platform': 'tcp', 'porrt': 1234}})
