jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
64 stars 30 forks source link

refactor entity creation #15

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

refactor entity creation

https://github.com/jcgoette/baby_buddy_homeassistant/blob/caf1c9f519e809e196aca355a92da4e8269b8feb/custom_components/babybuddy/sensor.py#L69


    sensors = []

    # TODO: refactor entity creation
    for entity in baby_buddy_data.entities_get():
        entity_list = [baby_buddy_data]
        for part in entity:

e434c44564be1372efb071562b8dceaa8df8d192