Skip to content

Commit

Permalink
fix: switch base class to plain component
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmitty committed Sep 12, 2024
1 parent 81dfc89 commit ebcd765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esphome/components/pwrman_charger/pwrman_charger.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static const uint8_t PWRMAN_CHARGER_REGISTER_OTP_SW_REV = 0x23;
/// This hot-swappable module can be remotely managed and monitored via
/// I2C and is capable of up to 100W charging. This class is for the
/// central configuration.
class PwrmanCharger : public i2c::I2CDevice, public PollingComponent {
class PwrmanCharger : public i2c::I2CDevice, public Component {
#ifdef USE_SWITCH
protected:
switch_::Switch *enable_12v_switch_{nullptr};
Expand All @@ -86,12 +86,12 @@ class PwrmanCharger : public i2c::I2CDevice, public PollingComponent {
/** Sets the button for sending a SRC_CAP message to the sink. */
void set_src_cap_button(button::Button *button) { this->src_cap_button_ = button; }

/** Used by ESPHome framework. */
float get_setup_priority() const override;
/** Used by ESPHome framework. */
void setup() override;
/** Used by ESPHome framework. */
void dump_config() override;
/** Used by ESPHome framework. */
float get_setup_priority() const override;

protected:
i2c::ErrorCode last_error_;
Expand Down

0 comments on commit ebcd765

Please sign in to comment.