@patch("homeassistant.components.sensor.tcp.Sensor.update")
    def test_config_invalid_keys(self, mock_update):
        """Shouldn't store invalid keys in _config."""
        config = copy(TEST_CONFIG)
        config.update({
            "a": "test_a",
            "b": "test_b",
            "c": "test_c"
        })
        sensor = tcp.Sensor(self.hass, config)
        for invalid_key in "abc":
            assert sensor._config not in invalid_key
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/sensor/test_tcp.py/TestTCPSensor.test_config_invalid_keys/swapped operands of `not in`