* Handle negative numbers in sensor long term statistics * Use negative states in tests
sensor/__init__.py