Skip to content

Commit e0e603a

Browse files
committed
Add sensors
1 parent c0cccb3 commit e0e603a

10 files changed

+1614
-93
lines changed

.clang-format

+42-42
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Language: Cpp
1+
Language: Cpp
22
AccessModifierOffset: -1
33
AlignAfterOpenBracket: Align
44
AlignConsecutiveAssignments: false
55
AlignConsecutiveDeclarations: false
66
AlignEscapedNewlines: DontAlign
7-
AlignOperands: true
7+
AlignOperands: true
88
AlignTrailingComments: true
99
AllowAllParametersOfDeclarationOnNextLine: true
1010
AllowShortBlocksOnASingleLine: false
@@ -18,18 +18,18 @@ AlwaysBreakTemplateDeclarations: MultiLine
1818
BinPackArguments: true
1919
BinPackParameters: true
2020
BraceWrapping:
21-
AfterClass: false
21+
AfterClass: false
2222
AfterControlStatement: false
23-
AfterEnum: false
24-
AfterFunction: false
25-
AfterNamespace: false
23+
AfterEnum: false
24+
AfterFunction: false
25+
AfterNamespace: false
2626
AfterObjCDeclaration: false
27-
AfterStruct: false
28-
AfterUnion: false
27+
AfterStruct: false
28+
AfterUnion: false
2929
AfterExternBlock: false
30-
BeforeCatch: false
31-
BeforeElse: false
32-
IndentBraces: false
30+
BeforeCatch: false
31+
BeforeElse: false
32+
IndentBraces: false
3333
SplitEmptyFunction: true
3434
SplitEmptyRecord: true
3535
SplitEmptyNamespace: true
@@ -42,39 +42,39 @@ BreakConstructorInitializersBeforeComma: false
4242
BreakConstructorInitializers: BeforeColon
4343
BreakAfterJavaFieldAnnotations: false
4444
BreakStringLiterals: true
45-
ColumnLimit: 120
46-
CommentPragmas: "^ IWYU pragma:"
45+
ColumnLimit: 120
46+
CommentPragmas: '^ IWYU pragma:'
4747
CompactNamespaces: false
4848
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4949
ConstructorInitializerIndentWidth: 4
5050
ContinuationIndentWidth: 4
5151
Cpp11BracedListStyle: true
52-
DerivePointerAlignment: true
53-
DisableFormat: false
52+
DerivePointerAlignment: false
53+
DisableFormat: false
5454
ExperimentalAutoDetectBinPacking: false
5555
FixNamespaceComments: true
5656
ForEachMacros:
5757
- foreach
5858
- Q_FOREACH
5959
- BOOST_FOREACH
60-
IncludeBlocks: Preserve
60+
IncludeBlocks: Preserve
6161
IncludeCategories:
62-
- Regex: '^<ext/.*\.h>'
63-
Priority: 2
64-
- Regex: '^<.*\.h>'
65-
Priority: 1
66-
- Regex: "^<.*"
67-
Priority: 2
68-
- Regex: ".*"
69-
Priority: 3
70-
IncludeIsMainRegex: "([-_](test|unittest))?$"
62+
- Regex: '^<ext/.*\.h>'
63+
Priority: 2
64+
- Regex: '^<.*\.h>'
65+
Priority: 1
66+
- Regex: '^<.*'
67+
Priority: 2
68+
- Regex: '.*'
69+
Priority: 3
70+
IncludeIsMainRegex: '([-_](test|unittest))?$'
7171
IndentCaseLabels: true
7272
IndentPPDirectives: None
73-
IndentWidth: 2
73+
IndentWidth: 2
7474
IndentWrappedFunctionNames: false
7575
KeepEmptyLinesAtTheStartOfBlocks: false
76-
MacroBlockBegin: ""
77-
MacroBlockEnd: ""
76+
MacroBlockBegin: ''
77+
MacroBlockEnd: ''
7878
MaxEmptyLinesToKeep: 1
7979
NamespaceIndentation: None
8080
PenaltyBreakAssignment: 2
@@ -87,18 +87,18 @@ PenaltyExcessCharacter: 1000000
8787
PenaltyReturnTypeOnItsOwnLine: 2000
8888
PointerAlignment: Right
8989
RawStringFormats:
90-
- Language: Cpp
90+
- Language: Cpp
9191
Delimiters:
9292
- cc
9393
- CC
9494
- cpp
9595
- Cpp
9696
- CPP
97-
- "c++"
98-
- "C++"
99-
CanonicalDelimiter: ""
100-
BasedOnStyle: google
101-
- Language: TextProto
97+
- 'c++'
98+
- 'C++'
99+
CanonicalDelimiter: ''
100+
BasedOnStyle: google
101+
- Language: TextProto
102102
Delimiters:
103103
- pb
104104
- PB
@@ -112,10 +112,10 @@ RawStringFormats:
112112
- PARSE_TEXT_PROTO
113113
- ParseTextOrDie
114114
- ParseTextProtoOrDie
115-
CanonicalDelimiter: ""
116-
BasedOnStyle: google
117-
ReflowComments: true
118-
SortIncludes: false
115+
CanonicalDelimiter: ''
116+
BasedOnStyle: google
117+
ReflowComments: true
118+
SortIncludes: false
119119
SortUsingDeclarations: false
120120
SpaceAfterCStyleCast: true
121121
SpaceAfterTemplateKeyword: false
@@ -127,11 +127,11 @@ SpaceBeforeParens: ControlStatements
127127
SpaceBeforeRangeBasedForLoopColon: true
128128
SpaceInEmptyParentheses: false
129129
SpacesBeforeTrailingComments: 2
130-
SpacesInAngles: false
130+
SpacesInAngles: false
131131
SpacesInContainerLiterals: false
132132
SpacesInCStyleCastParentheses: false
133133
SpacesInParentheses: false
134134
SpacesInSquareBrackets: false
135-
Standard: Auto
136-
TabWidth: 2
137-
UseTab: Never
135+
Standard: Auto
136+
TabWidth: 2
137+
UseTab: Never

components/jk_bms/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from esphome.components import jk_modbus
44
from esphome.const import CONF_ID
55

6-
AUTO_LOAD = ["jk_modbus", "sensor"]
6+
AUTO_LOAD = ["jk_modbus", "sensor", "switch", "text_sensor"]
77
CODEOWNERS = ["@syssi"]
88
MULTI_CONF = True
99

0 commit comments

Comments
 (0)