fix add_config_value

This commit is contained in:
Guy 2021-02-12 12:13:32 +02:00 committed by GitHub
parent 2468dab6dd
commit 6a0764a937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ class CBPiBase(metaclass=ABCMeta):
return await self.cbpi.config.set(name,value) return await self.cbpi.config.set(name,value)
async def add_config_value(self, name, value, type: ConfigType, description, options=None): async def add_config_value(self, name, value, type: ConfigType, description, options=None):
await self.cbpi.add(name, value, type, description, options=None) await self.cbpi.config.add(name, value, type, description, options=None)
def get_kettle(self,id): def get_kettle(self,id):
return self.cbpi.kettle.find_by_id(id) return self.cbpi.kettle.find_by_id(id)