Skip to content
Snippets Groups Projects
Commit e3941898 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix mixing of device class wrappers

parent d004b257
No related branches found
No related tags found
1 merge request!896Fix mixing of device class wrappers
...@@ -166,6 +166,7 @@ Next change the version in the following places: ...@@ -166,6 +166,7 @@ Next change the version in the following places:
# Release Notes # Release Notes
* 0.32.3 Fixed disappeared metrics from LOFARDevice, OPCUADevice, StationManager.
* 0.32.2 Change hardware_powered_R to hardware_powered_fraction_R to report partial power. * 0.32.2 Change hardware_powered_R to hardware_powered_fraction_R to report partial power.
Implemented hardware_powered_fraction_R for more devices. Implemented hardware_powered_fraction_R for more devices.
* 0.32.1 Do not serve stale metrics * 0.32.1 Do not serve stale metrics
......
0.32.2 0.32.3
...@@ -41,7 +41,7 @@ def power_hierarchy(cls): ...@@ -41,7 +41,7 @@ def power_hierarchy(cls):
return type( return type(
cls.__name__, cls.__name__,
(cls,), (cls,) + cls.__bases__,
dict(_PowerHierarchyDevice.__dict__), dict(_PowerHierarchyDevice.__dict__),
) )
...@@ -270,9 +270,6 @@ class PowerHierarchyControlDevice(AbstractHierarchyDevice): ...@@ -270,9 +270,6 @@ class PowerHierarchyControlDevice(AbstractHierarchyDevice):
def power_hierarchy_control(cls): def power_hierarchy_control(cls):
return type( return type(
cls.__name__, cls.__name__,
( (cls,) + cls.__bases__ + PowerHierarchyControlDevice.__bases__,
cls,
AbstractHierarchyDevice,
),
dict(PowerHierarchyControlDevice.__dict__), dict(PowerHierarchyControlDevice.__dict__),
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment