Skip to content

Commit 64bd8e8

Browse files
fix missing SmartIR class in fan and media_player classes
1 parent 5570cf0 commit 64bd8e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/smartir/fan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def async_setup_platform(
5252
async_add_entities([SmartIRFan(hass, config, device_data)])
5353

5454

55-
class SmartIRFan(FanEntity, RestoreEntity):
55+
class SmartIRFan(SmartIR, FanEntity, RestoreEntity):
5656
_enable_turn_on_off_backwards_compatibility = False
5757

5858
def __init__(self, hass: HomeAssistant, config: ConfigType, device_data):

custom_components/smartir/media_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def async_setup_platform(
5151
async_add_entities([SmartIRMediaPlayer(hass, config, device_data)])
5252

5353

54-
class SmartIRMediaPlayer(MediaPlayerEntity, RestoreEntity):
54+
class SmartIRMediaPlayer(SmartIR, MediaPlayerEntity, RestoreEntity):
5555

5656
def __init__(self, hass: HomeAssistant, config: ConfigType, device_data):
5757
# Initialize SmartIR device

0 commit comments

Comments
 (0)