Ignore disabled battery entity when using HomeKit

I get this error in the log:

Logger: homeassistant.components.homekit.accessories
Source: components/homekit/accessories.py:353 
Integration: HomeKit (documentation, issues) 
First occurred: 14:10:02 (1 occurrences) 
Last logged: 14:10:02

binary_sensor.test: Battery sensor state missing: None

I have a sensor that is mains powered, but the battery shows 0%. To avoid a message in HomeKit I disabled the entity. But I do get this error. How else should I handle this?

Following as I have the same issue

I actually get this message for sensors that should report the battery level. It seems like the actual battery level is ignored. If I enable the recharge or replace sensor, it reports 0%.