🛠Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
73
stars
23
forks
source link
Change default initialization of Status in Boattribute #112
Closed
da-ekchajzer closed 2 years ago
Problem
Boattribute's Value and Status are always set in the code with the following values
value=None, status=Status.NONE
.self.hours_electrical_consumption = Boattribute(value=None, status=Status.NONE, unit="W", default=self.DEFAULT_POWER_CONSUMPTION)
This creates a useless redundancy.
Solution
value=None
status=Status.NONE