Custom animations are imported with incorrect name, the filename should prefix the name but is set as .
e.g. animation function anim_blink() in file customfx.py has animation name .blink, not customfx.blink.
Expected behavior
As per docs
Environment
MQTTany version: 0.14.0
Platform: pi zero
Configuration
n/a
The issue appears to be the module.__name__ function returning the '*'.
One possible solution is using os.path.splitext(filename)[0] function instead.
Describe the bug
Custom animations are imported with incorrect name, the filename should prefix the name but is set as . e.g. animation function anim_blink() in file customfx.py has animation name .blink, not customfx.blink.
Expected behavior
As per docs
Environment
Configuration
n/a
The issue appears to be the
module.__name__
function returning the '*'. One possible solution is usingos.path.splitext(filename)[0]
function instead.