Skip to content

Commit

Permalink
Merge pull request #607 from MTrab:Temporarily-disable-torque-setting…
Browse files Browse the repository at this point in the history
…-due-to-error

Disable torque entity due to error
  • Loading branch information
MTrab authored May 6, 2024
2 parents 490a1f2 + e1a668f commit 8dd9301
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions custom_components/landroid_cloud/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@
),
required_protocol=0,
),
LandroidNumberEntityDescription(
key="torque",
name="Torque",
entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.POWER_FACTOR,
entity_registry_enabled_default=True,
native_unit_of_measurement=None,
native_min_value=-50,
native_max_value=50,
native_step=1,
mode=NumberMode.SLIDER,
value_fn=lambda api: api.cloud.devices[api.device_name].torque,
command_fn=lambda api, value: api.cloud.send(
api.device.serial_number, json.dumps({"tq": value})
),
required_capability=DeviceCapability.TORQUE,
),
# LandroidNumberEntityDescription(
# key="torque",
# name="Torque",
# entity_category=EntityCategory.CONFIG,
# device_class=NumberDeviceClass.POWER_FACTOR,
# entity_registry_enabled_default=True,
# native_unit_of_measurement=None,
# native_min_value=-50,
# native_max_value=50,
# native_step=1,
# mode=NumberMode.SLIDER,
# value_fn=lambda api: api.cloud.devices[api.device_name].torque,
# command_fn=lambda api, value: api.cloud.send(
# api.device.serial_number, json.dumps({"tq": value})
# ),
# required_capability=DeviceCapability.TORQUE,
# ),
LandroidNumberEntityDescription(
key="raindelay",
name="Raindelay",
Expand Down

0 comments on commit 8dd9301

Please sign in to comment.