Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c05e7de

Browse files
committed
aioesphomeapi: update proto
Update the field names. Lock the protobuf version so the github actions checks are not broken every time a new protobuf version is released.
1 parent 88942b5 commit c05e7de

File tree

7 files changed

+2497
-1104
lines changed

7 files changed

+2497
-1104
lines changed

node/light_apa102.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ func (l *lightAPA102) init(ctx context.Context, n *Node) error {
6868
func (l *lightAPA102) describe() proto.Message {
6969
// TODO(maruel): Add mireds limits and effects.
7070
return &aioesphomeapi.ListEntitiesLightResponse{
71-
ObjectId: l.objectID,
72-
Key: l.key,
73-
Name: l.name,
74-
UniqueId: l.uniqueID,
75-
SupportsBrightness: true,
76-
SupportsRgb: true,
77-
SupportsWhiteValue: false,
78-
SupportsColorTemperature: true,
79-
MinMireds: 0,
80-
MaxMireds: 0,
81-
Effects: nil,
71+
ObjectId: l.objectID,
72+
Key: l.key,
73+
Name: l.name,
74+
UniqueId: l.uniqueID,
75+
LegacySupportsBrightness: true,
76+
LegacySupportsRgb: true,
77+
LegacySupportsWhiteValue: false,
78+
LegacySupportsColorTemperature: true,
79+
MinMireds: 0,
80+
MaxMireds: 0,
81+
Effects: nil,
8282
}
8383
}
8484

node/light_fake.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ func (l *lightFake) init(ctx context.Context, n *Node) error {
4141

4242
func (l *lightFake) describe() proto.Message {
4343
return &aioesphomeapi.ListEntitiesLightResponse{
44-
ObjectId: l.objectID,
45-
Key: l.key,
46-
Name: l.name,
47-
UniqueId: l.uniqueID,
48-
SupportsBrightness: false,
49-
SupportsRgb: false,
50-
SupportsWhiteValue: false,
51-
SupportsColorTemperature: false,
52-
MinMireds: 0,
53-
MaxMireds: 0,
54-
Effects: nil,
44+
ObjectId: l.objectID,
45+
Key: l.key,
46+
Name: l.name,
47+
UniqueId: l.uniqueID,
48+
LegacySupportsBrightness: false,
49+
LegacySupportsRgb: false,
50+
LegacySupportsWhiteValue: false,
51+
LegacySupportsColorTemperature: false,
52+
MinMireds: 0,
53+
MaxMireds: 0,
54+
Effects: nil,
5555
}
5656
}
5757

thirdparty/aioesphomeapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
URL: https://github.com/esphome/aioesphomeapi
22
LICENSE: MIT
3-
Version: v2.6.6
3+
Version: v9.0.0

0 commit comments

Comments
 (0)