mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 04:25:15 +01:00
Format Fixes
Fix to pass tests
This commit is contained in:
parent
3428340808
commit
d254c6b306
2 changed files with 3 additions and 3 deletions
|
@ -88,12 +88,12 @@ template<typename... Ts> class IsAnnouncingCondition : public Condition<Ts...>,
|
|||
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_ANNOUNCING; }
|
||||
};
|
||||
|
||||
template<typename... Ts> class isOnCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
|
||||
template<typename... Ts> class IsOnCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
|
||||
public:
|
||||
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_ON; }
|
||||
};
|
||||
|
||||
template<typename... Ts> class isOffCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
|
||||
template<typename... Ts> class IsOffCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
|
||||
public:
|
||||
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_OFF; }
|
||||
};
|
||||
|
|
|
@ -86,7 +86,7 @@ class MediaPlayerTraits {
|
|||
bool get_supports_pause() const { return this->supports_pause_; }
|
||||
|
||||
std::vector<MediaPlayerSupportedFormat> &get_supported_formats() { return this->supported_formats_; }
|
||||
|
||||
|
||||
void set_supports_next_previous_track(bool supports_next_previous_track) {
|
||||
this->supports_next_previous_track_ = supports_next_previous_track;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue