Skip to content

Commit

Permalink
Remove tev & fix some type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chemwolf6922 committed Dec 21, 2024
1 parent afef709 commit faa13c5
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 510 deletions.
3 changes: 3 additions & 0 deletions custom_components/xiaomi_home/miot/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def randomize_int(value: int, ratio: float) -> int:
"""Randomize an integer value."""
return int(value * (1 - ratio + random.random()*2*ratio))

def randomize_float(value: float, ratio: float) -> float:
"""Randomize a float value."""
return value * (1 - ratio + random.random()*2*ratio)

class MIoTMatcher(MQTTMatcher):
"""MIoT Pub/Sub topic matcher."""
Expand Down
324 changes: 0 additions & 324 deletions custom_components/xiaomi_home/miot/miot_ev.py

This file was deleted.

Loading

0 comments on commit faa13c5

Please sign in to comment.