Skip to content

Commit

Permalink
Remove value from class vars.
Browse files Browse the repository at this point in the history
These don't need default values.
  • Loading branch information
denpamusic committed Oct 15, 2023
1 parent 9405059 commit e896aaf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyplumio/structures/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Alert:
class AlertsStructure(StructureDecoder):
"""Represents an alerts data structure."""

_offset: int = 0
_offset: int

def _unpack_alert(self, message: bytearray) -> Alert:
"""Unpack an alert."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/data_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DataSchemaStructure(StructureDecoder):
"""Represents a data schema structure."""

_offset: int = 0
_offset: int

def _unpack_block(self, message: bytearray) -> tuple[int, DataType]:
"""Unpack a block."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/frame_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class FrameVersionsStructure(StructureDecoder):
"""Represents a frame version data structure."""

_offset: int = 0
_offset: int

def _unpack_frame_versions(self, message: bytearray) -> tuple[FrameType | int, int]:
"""Unpack frame versions."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/mixer_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MixerParameterDescription(ParameterDescription):
class MixerParametersStructure(StructureDecoder):
"""Represents a mixer parameters data structure."""

_offset: int = 0
_offset: int

def _mixer_parameter(
self, message: bytearray, start: int, end: int
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/mixer_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class MixerSensorsStructure(StructureDecoder):
"""Represents a mixer sensors data structure."""

_offset: int = 0
_offset: int

def _unpack_mixer_sensors(self, message: bytearray) -> EventDataType | None:
"""Unpack sensors for a mixer."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ConnectedModules:
class ModulesStructure(StructureDecoder):
"""Represents a modules data structure."""

_offset: int = 0
_offset: int

def _unpack_module_version(self, module: str, message: bytearray) -> str | None:
"""Unpack a module version."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _join_bits(bits: Sequence[int | bool]) -> int:
class SchedulesStructure(Structure):
"""Represents a schedule data structure."""

_offset: int = 0
_offset: int

def encode(self, data: EventDataType) -> bytearray:
"""Encode data to the bytearray message."""
Expand Down
2 changes: 1 addition & 1 deletion pyplumio/structures/thermostat_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class ThermostatSensorsStructure(StructureDecoder):
"""Represents a thermostats sensors data structure."""

_offset: int = 0
_offset: int
_contact_mask: int = 1
_schedule_mask: int = 1 << 3

Expand Down

0 comments on commit e896aaf

Please sign in to comment.