CrazyIvan359 / mqttany

MQTTany is designed to make it easy to connect hardware on single board computers to your home automation solution.
https://crazyivan359.github.io/mqttany/index.html
MIT License
6 stars 6 forks source link

Custom animation naming using '*' prefix in place of module name #119

Closed woodface closed 3 years ago

woodface commented 3 years ago

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 using os.path.splitext(filename)[0] function instead.