From cf5791ac0c5eb80b27a2c92cbda6ca7dd70adc6c Mon Sep 17 00:00:00 2001 From: ronaldt80 <53364332+ronaldt80@users.noreply.github.com> Date: Wed, 14 Apr 2021 20:34:27 +0200 Subject: [PATCH] Update fan.py --- custom_components/philips_airpurifier_http/fan.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/custom_components/philips_airpurifier_http/fan.py b/custom_components/philips_airpurifier_http/fan.py index bd4d7b7..d9e16b0 100644 --- a/custom_components/philips_airpurifier_http/fan.py +++ b/custom_components/philips_airpurifier_http/fan.py @@ -21,7 +21,6 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, - CONF_UNIQUE_ID, ) from .const import * @@ -124,8 +123,6 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= wifi = await hass.async_add_executor_job(client.get_wifi) if PHILIPS_MAC_ADDRESS in wifi: unique_id = wifi[PHILIPS_MAC_ADDRESS] - else: - unique_id = config[CONF_UNIQUE_ID] device = PhilipsAirPurifierFan(hass, client, name, unique_id)