Skip to content

[FEATURE] Add informative __str__ and __repr__ methods #21

@ericbstie

Description

@ericbstie

Describe the solution you'd like

Add __str__ and __repr__ methods that better tell what the object is. For example:

>>> print(tibber.homes[0])
<tibber.types.home.TibberHome object at 0x000002C17D154B20>
>>> 
>>> # Instead:
>>> print(tibber.homes[0])
VitaHuset owned by Arya Stark at Winterfell Castle 1.
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomerslow priorityThis issue will probably not be looked into for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions