Skip to content

Commit

Permalink
Import crcmod only when needed + update poetry.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed May 4, 2024
1 parent 41e0710 commit bf279d8
Show file tree
Hide file tree
Showing 2 changed files with 350 additions and 339 deletions.
3 changes: 2 additions & 1 deletion miio/integrations/chunmi/cooker_multi/cooker_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import List

import click
import crcmod

from miio.click_common import command, format_output
from miio.device import Device, DeviceStatus
Expand Down Expand Up @@ -204,6 +203,8 @@ def set_auto_keep_warm_enabled(self, enabled):
self.update_checksum()

def calc_checksum(self):
import crcmod

crc = crcmod.mkCrcFun(0x11021, rev=False, initCrc=0x0, xorOut=0x0)(
self.profile_bytes
)
Expand Down
Loading

0 comments on commit bf279d8

Please sign in to comment.