Skip to content

Commit dc93a62

Browse files
committed
chore: Rename b01 properties to match v1
1 parent f6a944a commit dc93a62

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

roborock/devices/traits/b01/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
__init__ = [
1010
"create_b01_traits",
11-
"B01PropsApi",
11+
"PropertiesApi",
1212
]
1313

1414

15-
class B01PropsApi(Trait):
15+
class PropertiesApi(Trait):
1616
"""API for interacting with B01 devices."""
1717

1818
def __init__(self, channel: MqttChannel) -> None:
@@ -26,6 +26,6 @@ async def query_values(self, props: list[RoborockB01Props]) -> None:
2626
)
2727

2828

29-
def create(channel: MqttChannel) -> B01PropsApi:
29+
def create(channel: MqttChannel) -> PropertiesApi:
3030
"""Create traits for B01 devices."""
31-
return B01PropsApi(channel)
31+
return PropertiesApi(channel)

roborock/devices/traits/traits_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TraitsMixin:
3131
zeo: a01.ZeoApi | None = None
3232
"""Zeo API, if supported."""
3333

34-
b01_props_api: b01.B01PropsApi | None = None
34+
b01_properties: b01.PropertiesApi | None = None
3535
"""B01 properties trait, if supported."""
3636

3737
def __init__(self, trait: Trait) -> None:

0 commit comments

Comments
 (0)