File tree 5 files changed +11
-11
lines changed
homeassistant/components/matter
5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 5
5
from typing import TYPE_CHECKING , cast
6
6
7
7
from chip .clusters import Objects as clusters
8
- from matter_server .client .models .device_types import BridgedDevice
8
+ from matter_server .client .models .device_types import BridgedNode
9
9
from matter_server .common .models import EventType , ServerInfoMessage
10
10
11
11
from homeassistant .config_entries import ConfigEntry
@@ -162,7 +162,7 @@ def _create_device_registry(
162
162
(
163
163
x
164
164
for x in endpoint .device_types
165
- if x .device_type != BridgedDevice .device_type
165
+ if x .device_type != BridgedNode .device_type
166
166
),
167
167
None ,
168
168
)
Original file line number Diff line number Diff line change 40
40
)
41
41
42
42
COLOR_MODE_MAP = {
43
- clusters .ColorControl .Enums .ColorMode .kCurrentHueAndCurrentSaturation : ColorMode .HS ,
44
- clusters .ColorControl .Enums .ColorMode .kCurrentXAndCurrentY : ColorMode .XY ,
45
- clusters .ColorControl .Enums .ColorMode . kColorTemperature : ColorMode .COLOR_TEMP ,
43
+ clusters .ColorControl .Enums .ColorModeEnum .kCurrentHueAndCurrentSaturation : ColorMode .HS ,
44
+ clusters .ColorControl .Enums .ColorModeEnum .kCurrentXAndCurrentY : ColorMode .XY ,
45
+ clusters .ColorControl .Enums .ColorModeEnum . kColorTemperatureMireds : ColorMode .COLOR_TEMP ,
46
46
}
47
47
48
48
# there's a bug in (at least) Espressif's implementation of light transitions
@@ -355,21 +355,21 @@ def _update_from_device(self) -> None:
355
355
356
356
if (
357
357
capabilities
358
- & clusters .ColorControl .Bitmaps .ColorCapabilities . kHueSaturationSupported
358
+ & clusters .ColorControl .Bitmaps .ColorCapabilitiesBitmap . kHueSaturation
359
359
):
360
360
supported_color_modes .add (ColorMode .HS )
361
361
self ._supports_color = True
362
362
363
363
if (
364
364
capabilities
365
- & clusters .ColorControl .Bitmaps .ColorCapabilities . kXYAttributesSupported
365
+ & clusters .ColorControl .Bitmaps .ColorCapabilitiesBitmap . kXy
366
366
):
367
367
supported_color_modes .add (ColorMode .XY )
368
368
self ._supports_color = True
369
369
370
370
if (
371
371
capabilities
372
- & clusters .ColorControl .Bitmaps .ColorCapabilities . kColorTemperatureSupported
372
+ & clusters .ColorControl .Bitmaps .ColorCapabilitiesBitmap . kColorTemperature
373
373
):
374
374
supported_color_modes .add (ColorMode .COLOR_TEMP )
375
375
self ._supports_color_temperature = True
Original file line number Diff line number Diff line change 7
7
"dependencies" : [" websocket_api" ],
8
8
"documentation" : " https://www.home-assistant.io/integrations/matter" ,
9
9
"iot_class" : " local_push" ,
10
- "requirements" : [" python-matter-server==6.6 .0" ],
10
+ "requirements" : [" python-matter-server==7.0 .0" ],
11
11
"zeroconf" : [" _matter._tcp.local." , " _matterc._udp.local." ]
12
12
}
Original file line number Diff line number Diff line change @@ -2387,7 +2387,7 @@ python-linkplay==0.1.1
2387
2387
# python-lirc==1.2.3
2388
2388
2389
2389
# homeassistant.components.matter
2390
- python-matter-server==6.6 .0
2390
+ python-matter-server==7.0 .0
2391
2391
2392
2392
# homeassistant.components.xiaomi_miio
2393
2393
python-miio==0.5.12
Original file line number Diff line number Diff line change @@ -1920,7 +1920,7 @@ python-kasa[speedups]==0.9.0
1920
1920
python-linkplay==0.1.1
1921
1921
1922
1922
# homeassistant.components.matter
1923
- python-matter-server==6.6 .0
1923
+ python-matter-server==7.0 .0
1924
1924
1925
1925
# homeassistant.components.xiaomi_miio
1926
1926
python-miio==0.5.12
You can’t perform that action at this time.
0 commit comments