This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/plugins/pymock/integrationpluginpymock.py
2020-10-15 22:34:06 +02:00

18 lines
565 B
Python

import nymea
def init():
logger.log("Python mock plugin init")
logger.log("Number of auto mocks", configValue(pyMockPluginAutoThingCountParamTypeId))
def configValueChanged(paramTypeId, value):
logger.log("Plugin config value changed:", paramTypeId, value)
def startMonitoringAutoThings():
logger.log("Start monitoring auto things. Already have", len(myThings()))
for i in range(configValue(pyMockPluginAutoThingCountParamTypeId), len(myThings())):
logger.log("auto thing")
# descriptor = nymea.
# autoThingsAppeared(