'Check the supplied config and call add_devices with sensor.'

@patch('homeassistant.components.sensor.tcp.TcpSensor.update')
def test_setup_platform_devices(self, mock_update):

    add_devices = Mock()
    ret = bin_tcp.setup_platform(None, test_tcp.TEST_CONFIG, add_devices)
    assert (ret is None)
    assert add_devices.called
    assert isinstance(add_devices.call_args[0][0][0], bin_tcp.TcpBinarySensor)
