Skip to content

Commit

Permalink
Changed to ClimateEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
sockless-coding committed May 21, 2020
1 parent 032b4f8 commit 65a2042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/panasonic_cc/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import voluptuous as vol
from typing import Any, Dict, Optional, List

from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity
from homeassistant.components.climate.const import HVAC_MODE_OFF, SUPPORT_PRESET_MODE

from homeassistant.const import (
Expand Down Expand Up @@ -42,7 +42,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
]
)

class PanasonicClimateDevice(ClimateDevice):
class PanasonicClimateDevice(ClimateEntity):

def __init__(self, api):
"""Initialize the climate device."""
Expand Down

0 comments on commit 65a2042

Please sign in to comment.