* Fix for battery device: new_device referenced before assignment. * Fix buttons and switches mixup * Update __init__.py * Update binary_sensor.py * Update __init__.py * Update __init__.py * Update binary_sensor.py * Update __init__.py * Update binary_sensor.py * typo and indentation fixes * low_bat and lowbat to uppercase.