Skip to content

Commit 2aa8841

Browse files
committed
Replace NamedTuple by dataclass
1 parent 27712ad commit 2aa8841

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise/constants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
from __future__ import annotations
33

44
from collections import namedtuple
5+
from dataclasses import dataclass
56
import datetime as dt
67
import logging
7-
from typing import Final, NamedTuple, TypedDict
8+
from typing import Final, TypedDict
89

910
LOGGER = logging.getLogger(__name__)
1011

@@ -506,7 +507,8 @@ class DeviceData(
506507
thermostat: ActuatorData
507508

508509

509-
class PlugwiseData(NamedTuple):
510+
@dataclass
511+
class PlugwiseData:
510512
"""Plugwise data provided as output."""
511513

512514
gateway: GatewayData

0 commit comments

Comments
 (0)