Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions luxtronik/cfi/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
class Calculations(DataVector):
"""Class that holds all calculations."""

logger = LOGGER
name = CALCULATIONS_FIELD_NAME
definitions = CALCULATIONS_DEFINITIONS

Expand Down Expand Up @@ -55,7 +54,7 @@ def _get_firmware_version(self):
def get(self, target):
"""Treats certain names specially. For all others, the function of the base class is called."""
if target == "ID_WEB_SoftStand":
self.logger.debug("The name 'ID_WEB_SoftStand' is obsolete! Use 'get_firmware_version()' instead.")
LOGGER.debug("The name 'ID_WEB_SoftStand' is obsolete! Use 'get_firmware_version()' instead.")
entry = Base("ID_WEB_SoftStand")
entry.raw = self._get_firmware_version()
return entry
Expand Down
7 changes: 3 additions & 4 deletions luxtronik/cfi/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class Parameters(DataVector):
"""Class that holds all parameters."""

logger = LOGGER
name = PARAMETERS_FIELD_NAME
definitions = PARAMETERS_DEFINITIONS

Expand All @@ -51,8 +50,8 @@ def set(self, target, value):
if isinstance(raw, int):
self.queue[index] = raw
else:
self.logger.error("Value '%s' for Parameter '%s' not valid!", value, parameter.name)
LOGGER.error("Value '%s' for Parameter '%s' not valid!", value, parameter.name)
else:
self.logger.warning("Parameter '%s' not safe for writing!", parameter.name)
LOGGER.warning("Parameter '%s' not safe for writing!", parameter.name)
else:
self.logger.warning("Parameter '%s' not found", target)
LOGGER.warning("Parameter '%s' not found", target)
1 change: 0 additions & 1 deletion luxtronik/cfi/visibilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class Visibilities(DataVector):
"""Class that holds all visibilities."""

logger = LOGGER
name = VISIBILITIES_FIELD_NAME
definitions = VISIBILITIES_DEFINITIONS

Expand Down
3 changes: 1 addition & 2 deletions luxtronik/data_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
class DataVector:
"""Class that holds a vector of data entries."""

logger = LOGGER
name = "DataVector"

_obsolete = {}
Expand Down Expand Up @@ -85,7 +84,7 @@ def _lookup(self, target, with_index=False):

target_entry = self._data.get(target_index, None)
if target_entry is None:
self.logger.warning("entry '%s' not found", target)
LOGGER.warning("entry '%s' not found", target)
if with_index:
return target_index, target_entry
return target_entry
Expand Down
1 change: 0 additions & 1 deletion luxtronik/shi/holdings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class Holdings(DataVectorSmartHome):
"""Class that holds holding fields."""

logger = LOGGER
name = HOLDINGS_FIELD_NAME
definitions = HOLDINGS_DEFINITIONS

Expand Down
1 change: 0 additions & 1 deletion luxtronik/shi/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class Inputs(DataVectorSmartHome):
"""Class that holds input fields."""

logger = LOGGER
name = INPUTS_FIELD_NAME
definitions = INPUTS_DEFINITIONS

Expand Down