'Check the return that _state is not the same as value_on.'

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

    sensor = bin_tcp.TcpBinarySensor(self.hass, test_tcp.TEST_CONFIG['sensor'])
    sensor._state = '{}    abc'.format(test_tcp.TEST_CONFIG['sensor'][tcp.CONF_VALUE_ON])
    assert (not sensor.is_on)
