mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Add python 3.10 to CI (#279)
* Add python 3.10 to CI * Require pytest >=6.2.5 Required for running on python 3.10 (https://github.com/pytest-dev/pytest/pull/8540) * Update lockfile * Update pre-commit hooks
This commit is contained in:
@@ -205,13 +205,13 @@ class SmartStrip(SmartDevice):
|
||||
@requires_update
|
||||
def emeter_this_month(self) -> Optional[float]:
|
||||
"""Return this month's energy consumption in kWh."""
|
||||
return sum([plug.emeter_this_month for plug in self.children])
|
||||
return sum(plug.emeter_this_month for plug in self.children)
|
||||
|
||||
@property # type: ignore
|
||||
@requires_update
|
||||
def emeter_today(self) -> Optional[float]:
|
||||
"""Return this month's energy consumption in kWh."""
|
||||
return sum([plug.emeter_today for plug in self.children])
|
||||
return sum(plug.emeter_today for plug in self.children)
|
||||
|
||||
@property # type: ignore
|
||||
@requires_update
|
||||
|
Reference in New Issue
Block a user