def platform_setup(hass, config, add_entities, discovery_info=None):
    'Test the platform setup.'
    add_entities([MockEntity(name='beer'), MockEntity(name=None)])
Test the platform setup.
def platform_setup(hass, config, add_entities, discovery_info=None):
    
    add_entities([MockEntity(name='beer'), MockEntity(name=None)])