'Return the superclass name property if not set in configuration.'

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

    config = copy(TEST_CONFIG['sensor'])
    del config[tcp.CONF_NAME]
    entity = Entity()
    sensor = tcp.TcpSensor(self.hass, config)
    assert (sensor.name == entity.name)
