forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resistance_sampler interface for config validation (esphome#5718)
- Loading branch information
1 parent
bc7519f
commit 01d28ce
Showing
6 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import esphome.codegen as cg | ||
|
||
resistance_sampler_ns = cg.esphome_ns.namespace("resistance_sampler") | ||
ResistanceSampler = resistance_sampler_ns.class_("ResistanceSampler") | ||
|
||
CODEOWNERS = ["@jesserockz"] |
10 changes: 10 additions & 0 deletions
10
esphome/components/resistance_sampler/resistance_sampler.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
namespace esphome { | ||
namespace resistance_sampler { | ||
|
||
/// Abstract interface to mark components that provide resistance values. | ||
class ResistanceSampler {}; | ||
|
||
} // namespace resistance_sampler | ||
} // namespace esphome |