Update AdjustRange Handler Service Calls. (#31016)

Add a AlexaGlobalCatalog value to all labels.
This commit is contained in:
ochlocracy authored and Paulus Schoutsen committed 2020-01-22 11:04:31 -08:00
1 parent 93d109e524
commit 4015a046d2
3 files changed
+77 -10

No files matched your search

@@ -1203,7 +1203,10 @@ class AlexaModeController(AlexaCapability):
f"{cover.ATTR_POSITION}.{cover.STATE_CLOSED}",
[AlexaGlobalCatalog.VALUE_CLOSE],
)
self._resource.add_mode(f"{cover.ATTR_POSITION}.custom", ["Custom"])
self._resource.add_mode(
f"{cover.ATTR_POSITION}.custom",
["Custom", AlexaGlobalCatalog.SETTING_PRESET],
)
return self._resource.serialize_capability_resources()
return None
@@ -1397,7 +1400,7 @@ class AlexaRangeController(AlexaCapability):
unit = self.entity.attributes.get(input_number.ATTR_UNIT_OF_MEASUREMENT)
self._resource = AlexaPresetResource(
["Value"],
["Value", AlexaGlobalCatalog.SETTING_PRESET],
min_value=min_value,
max_value=max_value,
precision=precision,